GitHub & Code
getPullRequestDiff
Get Pull Request Diff
Read a bounded unified diff for one GitHub pull request.
Ask Claude, ChatGPT, Cursor or any AI connected to The Cloud "show me the diff for PR #N", and it calls getPullRequestDiff.
Example call
The MCP tools/call params, with the required arguments only.
{
"arguments": {
"owner": "<owner>",
"repo": "<repo>",
"pullNumber": 1
},
"name": "getPullRequestDiff"
}Arguments
ownerstringrequiredRepository ownerrepostringrequiredRepository namepullNumbernumberrequiredPull request numbermaxBytesintegeroptionalMaximum UTF-8 diff bytes to return. Defaults to 200,000 and clamps at 400,000.
Returns
Returns the diff, head and base refs, and change totals for relay-seat review.
Declared limits
maxBytes: greater than 0maxBytes: maximum 9007199254740991
Ask for it
The Cloud routes these requests to this verb.
- show me the diff for PR #N
- review the changes in that pull request
Pair it with
The verbs that finish the job.
Questions
What does getPullRequestDiff do?
Read a bounded unified diff for one GitHub pull request. It is one of the tools The Cloud MCP server gives every connected AI.
How do I use getPullRequestDiff from Claude or ChatGPT?
Connect your AI to The Cloud at https://mcp.thecloud.so/mcp and sign in once. Then ask Claude, ChatGPT, Cursor or any AI connected to The Cloud "show me the diff for PR #N", and it calls getPullRequestDiff.
Is getPullRequestDiff safe to let an AI call?
getPullRequestDiff is read-only: it changes nothing. It reaches a system outside The Cloud on your behalf.
Connect
One endpoint gives your AI this tool and every other one: connect Claude, ChatGPT, Cursor or Gemini, read what The Cloud is, or see pricing.