getPullRequestDiff
Retrieve a pull request's diff as unified text to review changes, either for the whole PR or a single file, with configurable context lines.
Instructions
Get the PR diff as unified text (whole PR, or one file)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repoSlug": "<repoSlug>",
"prId": "<prId>"
},
"name": "getPullRequestDiff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | One file; omit for all | |
| prId | Yes | ||
| repoSlug | Yes | ||
| projectKey | No | ||
| contextLines | No | Default 3 |