Get pull request diff
get_diffFetch the unified diff for a Bitbucket pull request, enabling code review without leaving your editor.
Instructions
Fetch the unified diff for a pull request.
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": {
"pull_request_id": "<pull_request_id>"
},
"name": "get_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_chars | No | Truncate the diff past this many characters | |
| repo_slug | No | Repository slug, e.g. "billing-api". Defaults to BITBUCKET_REPO_SLUG. | |
| workspace | No | Bitbucket workspace ID, e.g. "acme". Defaults to BITBUCKET_WORKSPACE. | |
| pull_request_id | Yes | Pull request number |