Taking to Twitter a day after PM Imran revealed that the United States president had written a letter to him, the human rights minister said, "PM IK's response to Trump's offensive tweets against Pakistan compelled Trump to do a reality check and write to PM Khan asking for help in bringing peace to Afghanistan!". "It is diplomatically led as it should be, and we'll do our best to protect the Afghan people", he added.
Pakistani media outlets, whose reporters met with Mr Khan in Islamabad on Monday, quoted the prime minister as saying that Pakistan would continue its efforts to help peace in Afghanistan.
Trump complained to Fox News in November that Islamabad doesn't do "a damn thing" for the U.S. and charged that its government had helped Osama bin Laden hide.
USA special envoy for Afghanistan peace, Zalmay Khalilzad, is due to arrive in Islamabad this week to further his mission of encouraging the insurgents to engage in an intra-Afghan peace dialogue to find a negotiating end to the conflict that has also caused record civilian casualties this year.
The ministry also said Mr Trump emphasised Pakistan and Washington "should explore opportunities to work together and renew their partnership".
The NSC and State Department said that in Trump's letter to Khan, which was disclosed by Pakistan, "the President recognizes that Pakistan has the ability to deny the Taliban sanctuary on its territory".
He had said that the government would give eggs and chickens to the rural women so they can start their own poultry business.
"Pakistan reiterates its commitment to play the role of facilitator in good faith", the ministry said.
"Peace and stability in Afghanistan remains a shared responsibility".
USA officials have always been pushing Pakistan to lean on the Taliban leadership, which Washington says is based in the country, to bring them to the negotiating table.
The U.S. embassy in Islamabad had no immediate comment on the letter.
Pakistan has long denied the claims and says it has paid the price for its alliance with the United States in the so-called "war on terror", with thousands of its citizens killed in its long struggle with militancy.
According to Imtiaz Gul, a Pakistani analyst, Mr Trump's letter indicates there is a realisation within the U.S. administration that Pakistan's co-operation is vital to ensuring peace in Afghanistan.
Pakistan Prime Minister Imran Khan on December 3 said war is not a solution to the Kashmir issue, which can be resolved through talks.