MPs could be given the opportunity to force a fresh referendum on Brexit before voting on Theresa May's proposed withdrawal agreement, it emerged last night, after the prime minister held a series of late-night conversations with opposition parties.

Sources who spoke with Ms May suggested they believed that ministers were heading towards agreeing that MPs will be able to vote on amendments to the government's motion before voting on the deal itself.

The significant development raises the prospect that Parliament could vote to approve the deal only if certain conditions are met - for example, that it is put to the public via a Final Say referendum.

While opposition figures who discussed the matter with the prime minister said they did not believe the exact arrangements for giving Parliament a "meaningful vote" on the Brexit deal had been fully confirmed, they suggested the government's "direction of travel" was to allow amendments to be voted on before the the vote on the deal itself.

One said: "They appear to be heading in the direction of allowing votes on amendments before the vote on the deal. That was their direction of travel."

The revelation came after Ms May held a lengthy meeting in her House of Commons office with DUP leader Arlene Foster, followed, at 10pm, by a 20-minute meeting with Jeremy Corbyn. She also spoke by phone with Scottish first minister Nicola Sturgeon, Wales' Carwyn Jones and Sinn Fein leaders.

The order of parliamentary votes on Ms May's proposed agreement has been a matter of fierce debate, with opposition parties insisting that amendments must be considered before the vote on the motion itself.

Some MPs believe this would give them the opportunity to force the government to meet certain conditions, either relating to the substance of the deal or to a fresh public vote.

The Commons procedure committee is considering the issue and is set to make a recommendation on the order in which votes should be held.

Opposition parties said they believed No 10 had recognised growing calls for MPs to be allowed to vote on the amendments first.

"They're coming under a lot of pressure from all sides", said one source. "They were clearly aware of that pressure."

A historic moment: thousands march to demand Final Say on Brexit Show all 65 1 /65 A historic moment: thousands march to demand Final Say on Brexit A historic moment: thousands march to demand Final Say on Brexit An estimated 700,000 people marched through London to demand a final say on the withdrawal agreement Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Red smoke from a canister hangs in the air as around 100,000 demonstrators march through London during a People's Vote anti-brexit demonstration savings banners and placards Anti-Brexit People's Vote March for the Future in London Rex A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Mayor of London Sadiq Khan takes part in the People's Vote March for the Future in London, a march and rally in support of a second EU referendum. PA A historic moment: thousands march to demand Final Say on Brexit Final Say campaigners take part in the peoples vote march for the future in London 20/10/2018 Protesters wearing final Say shirts and holding placards Angela Christofilou A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit MP Chuka Umunna (left) and MP Vince Cable (right) as MP Anna Soubry (centre) addresses Anti-Brexit campaigners at a rally after the People's Vote March for the Future in London, a march and rally in support of a second EU referendum. PA A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit A People’s Vote march attendee calls for a Final Say Angela Christofilou A historic moment: thousands march to demand Final Say on Brexit Demonstrators with banners 'We're with EU' during the People's Vote March for the Future in London, Britain, 20 October 2018. Reports state that the 'March for the Future' is to be led by a column of young people and call for a Peopleâ€™s Vote on the Brexit deal. After marching through central London, there will be a rally on stage in Parliament Square, including speeches from Mayor of London Sadiq Khan. EPA A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Protesters at London’s march for the future in October The Independent A historic moment: thousands march to demand Final Say on Brexit Editor of The Independent Christian Broughton speaks to demonstrators in Parliament Sqaure after they take part in a march calling for a People's Vote on the final Brexit deal, in central London on October 20, 2018. - Britons dreading life outside Europe gathered from all corners of the UK to London on Saturday to try to stop their country's looming breakup with the EU. AFP/Getty A historic moment: thousands march to demand Final Say on Brexit A poster at the March for the Future in October The Independent A historic moment: thousands march to demand Final Say on Brexit Anti-Brexit campaigners take part in the People's Vote March for the Future in London, a march and rally in support of a second EU referendum. PA A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say campaigners take part in the peoples vote march for the future in London 20/10/2018 Angela Christofilou A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Anti-Brexit campaigners take part in the People's Vote March for the Future in London, a march and rally in support of a second EU referendum. PA A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Demonstrators hold placards as they take part in a march calling for a People's Vote on the final Brexit deal, in central London on October 20, 2018. - Britons dreading life outside Europe gathered from all corners of the UK to London on Saturday to try to stop their country's looming breakup with the EU. AFP/Getty A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final say Brexit march - final say on our furture London, 20 October 2018 Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou A historic moment: thousands march to demand Final Say on Brexit Final Say campaigners take part in the peoples vote march for the future in London 20/10/2018 campaigner wrapped in EU flag Angela Christofilou A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say march for the future London, 20 October 2018 Credit: Angela Christofilou/The Independent Angela Christofilou/The Independent Angela Christofilou/The Independent A historic moment: thousands march to demand Final Say on Brexit Final Say campaigners take part in the peoples vote march for the future in London 20/10/2018 Angela Christofilou A historic moment: thousands march to demand Final Say on Brexit Demonstrators pass Trafalgar Square as they take part in a march calling for a People's Vote on the final Brexit deal, in central London on October 20, 2018. - Britons dreading life outside Europe gathered from all corners of the UK to London on Saturday to try to stop their country's looming breakup with the EU. AFP/Getty A historic moment: thousands march to demand Final Say on Brexit Demonstrators wave Union and European flags and hold up placards as they pass Trafalgar Square, taking part in a march calling for a People's Vote on the final Brexit deal, in central London on October 20, 2018. - Britons dreading life outside Europe gathered from all corners of the UK to London on Saturday to try to stop their country's looming breakup with the EU. AFP/Getty A historic moment: thousands march to demand Final Say on Brexit Demonstrators hold placards as they take part in a march calling for a People's Vote on the final Brexit deal, in central London on October 20, 2018. - Britons dreading life outside Europe gathered from all corners of the UK to London on Saturday to try to stop their country's looming breakup with the EU. AFP/Getty A historic moment: thousands march to demand Final Say on Brexit A demonstrator holds a message during a march calling for a People's Vote on the final Brexit deal, in central London on October 20, 2018. - Britons dreading life outside Europe gathered from all corners of the UK to London on Saturday to try to stop their country's looming breakup with the EU. AFP/Getty A historic moment: thousands march to demand Final Say on Brexit Anti-Brexit campaigners take part in the People's Vote March for the Future in London, a march and rally in support of a second EU referendum. PA A historic moment: thousands march to demand Final Say on Brexit Demonstrators take part in the 'People's Vote March for the Future,' in central London, Britain, 20 October 2018. Reports state that the 'March for the Future' is to be led by a column of young people and call for a Peopleâ€™s Vote on the Brexit deal. After marching through central London, there will be a rally on stage in Parliament Square, including speeches from Mayor of London Sadiq Khan EPA A historic moment: thousands march to demand Final Say on Brexit A protester brandishes an Independent t-shirt during the Brexit March Angela Christofilou A historic moment: thousands march to demand Final Say on Brexit Anti-Brexit campaigners take part in the People's Vote March for the Future in London, a march and rally in support of a second EU referendum PA A historic moment: thousands march to demand Final Say on Brexit Tens of thousands of people take part in People's Vote March for the Future in central London. The march organised by the People's Vote campaign is led by young people calling for a People's Vote on the Brexit deal Rex A historic moment: thousands march to demand Final Say on Brexit Anti-Brexit campaigners take part in the People's Vote March for the Future in London, a march and rally in support of a second EU referendum PA

A senior Labour source said Mr Corbyn had told the prime minister she must prioritise "full parliamentary sovereignty".

"Jeremy pressed the importance of full parliamentary sovereignty, including giving Parliament and committees sufficient time and information for serious scrutiny of the deal", they said.

Ms Sturgeon said Ms May had tried to persuade her that Scotland's "distinctive" interests had been protected in the proposed deal.

She said: "I pointed out that there isn't a single mention of Scotland in the agreement, that it disregards our interests, and puts Scotland at a serious competitive disadvantage."