President Donald Trump confirmed Thursday that he had spoken by phone with Chinese President Xi Jinping amid trade uncertainty.

China's state-run news agency Xinhua was first to report the talks, saying the talks came at Trump's request.

Trump posted to Truth Social mid-morning Thursday saying he had a 'very good phone call' with Xi.

Later, as he greeted German Chancellor Friedrich Merz outside the West Wing, Trump commented 'it went very well, thank you.'

He said that Xi invited the U.S. president and first lady Melania Trump to visit Beijing, while Trump reciprocated the offer, inviting Xi to Washington, D.C.