bb_get_pull_request_diff
Get the raw unified diff for a Bitbucket pull request to review all code changes. Filter by file, adjust context, and choose text, JSON, or compact output.
Instructions
Get the raw unified diff for a pull request. Returns text/plain diff output showing all changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Filter diff to a single file path | |
| filter | No | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax | |
| context | No | Number of context lines around changes (like git diff -U) | |
| repo_slug | Yes | The repository name | |
| workspace | Yes | The workspace or username | |
| output_format | No | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) | |
| pull_request_id | Yes | The pull request ID |