get_pull_request_diff
Retrieve the unified diff of a Bitbucket pull request as plain text for use in code review.
Instructions
Get the unified diff of a pull request as plain text. This is the primary input for a code review.
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": {
"repo": "<repo>",
"pr_id": "<pr_id>"
},
"name": "get_pull_request_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository slug, e.g. "my-service" (not the full URL). | |
| pr_id | Yes | Pull request id, e.g. 42. | |
| workspace | No | Workspace id. Optional when the BITBUCKET_WORKSPACE env var is set. |