bb_get_pull_request_diff
Retrieve the unified diff of a Bitbucket pull request as raw text. Optionally filter diff to a specific file path.
Instructions
Get the unified diff for a Bitbucket PR. Returns raw diff text.
Args: pull_request_id: The PR id (number). file_path: Optional file path filter. workspace: Bitbucket workspace slug. repo: Repository slug.
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": "bb_get_pull_request_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository slug. Defaults to BITBUCKET_DEFAULT_REPO. | |
| file_path | No | Optional: filter the diff to a single file path. | |
| workspace | No | Bitbucket workspace slug. Defaults to BITBUCKET_WORKSPACE. | |
| pull_request_id | Yes | The PR id (number). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |