By Mark Landler, Maggie Haberman and Eric Schmitt

New York Times News Service

WASHINGTON — President Donald Trump has sought to put the brakes on a brewing confrontation with Iran in recent days, telling the acting defense secretary, Patrick Shanahan, that he does not want to go to war with Iran, administration officials said, while his senior diplomats began searching for ways to defuse the tensions.

Trump’s statement, during a Wednesday morning meeting in the Situation Room, sent a message to his hawkish aides that he does not want the intensifying U.S. pressure campaign against the Iranians to explode into open conflict.

For now, an administration that had appeared to be girding for conflict seems more determined to find a diplomatic off-ramp.

Secretary of State Mike Pompeo called the leader of Oman, Sultan Qaboos bin Said, on Wednesday to confer about the threat posed by Iran, according to a statement. Long an intermediary between the West and Iran, Oman was a site of a secret channel in 2013 when the Obama administration was negotiating a nuclear agreement with Iran.

Pompeo asked European officials for help in persuading Iran to “de-escalate” tensions, which rose after U.S. intelligence indicated that Iran had placed missiles on small boats in the Persian Gulf. The intelligence, which was based on photographs that have not been released but were described to The New York Times, prompted fears that Tehran may strike at U.S. troops and assets or those of its allies.

Asked Thursday whether the United States was going to war with Iran, Trump replied, “I hope not.”

The developments cast into sharp relief a president who is instinctively wary of military adventures, and a cadre of advisers led by the national security adviser, John R. Bolton, who have taken an uncompromising line toward Iran. The internal tensions has prompted fears that the Trump administration is spoiling for a fight, even if the commander in chief may not be.

Those divisions are playing out against a fierce internal debate among administration officials about the gravity of the Iranian threat. While officials and British allies say the intelligence about the Iranian threat is valid, lawmakers and some inside the administration accuse Trump’s aides of exaggerating the danger and exploiting the intelligence to justify a military clash with Tehran.