get_diff
Retrieve a Bitbucket pull request diff, with optional per-file line limits to truncate large files during code review.
Instructions
Retrieve the diff for a pull request with optional truncation for large files.
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 to get diff for. | |
| project | No | Bitbucket project key (optional if default project configured). | |
| repository | Yes | Repository slug containing the pull request. | |
| contextLines | No | Context lines around changes (default: 10). | |
| maxLinesPerFile | No | Maximum number of lines per file (default: BITBUCKET_DIFF_MAX_LINES_PER_FILE). Set to 0 for no limit. |