get_diff
Fetch a pull request diff from Bitbucket Server using repository and pull request ID, with optional project key and context lines, to review proposed code changes.
Instructions
Get pull request diff
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": {
"repository": "<repository>",
"prId": "<prId>"
},
"name": "get_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prId | Yes | Pull request ID | |
| project | No | Bitbucket project key | |
| repository | Yes | Repository slug | |
| contextLines | No | Number of context lines |