MANILA — President Trump vowed this week to reclaim America’s role as a Pacific power. But as he wrapped up a marathon tour of Asia on Tuesday, Mr. Trump’s mixed messages left allies unsure of America’s staying power and fed a growing sense that China, not the United States, drives the agenda in the region.

Whether recruiting partners to confront North Korea even as he castigated them for trade abuses, or embracing China at the same time that he lined up a like-minded coalition to contain it, Mr. Trump was often a bewildering figure to countries that had already viewed the new president with anxiety.

“He’s seen as more personable than the figure on Twitter, but these internal contradictions have not been worked out,” said John Delury, an associate professor of Chinese studies at Yonsei University in South Korea. “Contrast that with the Chinese, who have this incredible consistency of message and are rising inexorably.”

In Manila, the final stop on his punishing 12-day tour of the region, Mr. Trump declared his visit a success.