Get pull request diff
bb_get_pull_request_diffFetches the unified diff of a pull request as raw text for reviewing code changes.
Instructions
Fetches the unified diff of a pull request as raw text.
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": {
"pullRequestId": "<pullRequestId>"
},
"name": "bb_get_pull_request_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repoSlug | No | Repository slug. Falls back to BITBUCKET_REPO_SLUG if omitted. | |
| workspace | No | Bitbucket workspace slug. Falls back to BITBUCKET_WORKSPACE if omitted. | |
| contextLines | No | Lines of context around each change. | |
| pullRequestId | Yes | Pull request ID. |