The military branches of both countries should also "improve the existing notification mechanism on military action and the code of unexpected encounters between their navies and air forces," XI said, China's Xinhua news agency reports.
Such unexpected encounters do occur now and then, as in 2016, when China's navy captured a US naval reconnaissance drone, leading to a few days of tension.
The news comes in the wake of the US missile strike against Syria that was launched while Xi was visiting Trump at his Mar-a-Lago residence in Florida.
"[Xi] stressed that the main priority for now is avoiding the escalation in the country and protection of the crisis settlement process," Chinese Foreign Ministry spokesman Lu Kang said after the attack, adding that the Chinese leader opposes the use of chemical weapons. The US strike came as a response to an alleged use of chemical weapons by Syrian President Bashar al-Assad.
According to John Park, a specialist on Northeast Asia at Harvard's Kennedy School, Xi could have used the situation like a poker player: watching Trump closely and making conclusions about how he would act under pressure. And while Trump's muscular message is likely to be perceived by Xi with a certain degree of skepticism, there is one thing Xi has surely noted.
"This shows how low a bar there is for the use of military force," Park said.
If that is the reality, then the direct communication channels will surely come in handy.