Iran's President Hassan Rouhani came out strongly in favour of talks on Monday as his top diplomat came under fire from hard-line media for a surprise visit to a G7 summit.
"I believe that for our country's national interests we must use any tool," Rouhani said in a speech aired live on state television.
"And if I knew that I was going to have a meeting with someone that would (lead to) prosperity for my country and people's problems would be resolved, I would not hesitate.
"The main thing is our country's national interests," he said to a round of applause from those gathered at an event marking government achievements in rural areas.
Rouhani's remarks came as his government faced criticism over the visit of Foreign Minister Mohammad Javad Zarif to the French seaside resort of Biarritz on Sunday for meetings on the sidelines of the G7 summit.
Zarif was invited to Biarritz by French President Emmanuel Macron, who has been leading efforts to de-escalate tensions between Iran and its arch-enemy the United States.
Iran's economy has been battered by US sanctions imposed since last year when President Donald Trump unilaterally withdrew the US from a landmark 2015 nuclear deal between the Islamic republic and world powers.
The ultra-conservative Kayhan newspaper strongly criticised Zarif's visit on Monday in an article that called the trip "improper".
Kayhan said the fact that the minister's visit was the second to France in a matter of days sent "a message of weakness and desperation".
"These improper measures are taken in the fantasy of an opening but it will definitely have no outcome other than more insolence and pressure," it added.
The reformist Etemad newspaper, however, described Zarif's trip to France as "the most hopeful moment" for Iran in the 15 months since the US withdrew from the nuclear deal.
"Given Macron's attempts over the last two months, one can be hopeful that Trump's response to Macron's ideas has been the main reason for Zarif's... trip to Biarritz," it said.
The spike in tensions between Iran and the US has threatened to spiral out of control in the past few weeks, with ships mysteriously attacked, drones downed and tankers seized.
'Both hands' of power and diplomacy
Rouhani said his government was ready to use "both hands" of power and diplomacy.
"They may seize our ship somewhere... we will both negotiate... and we may seize their ship for legal reasons," he said, referring to an Iranian oil tanker seized off Gibraltar that has since been released and a British-flagged vessel still impounded by Iran in the Gulf.
"We can work with two hands... the hand of power and the hand of diplomacy," said the Iranian president.
"We must use both our power, our military and security power, economic and cultural power and our political power. We must negotiate. We must find solutions. We must reduce problems.
"Even if the probability of success... is 10%, we must endeavour and go ahead. We must not lose opportunities."
- FOLLOW News24 on Twitter