Get PR diff
get_pr_diffFetch the unified diff for a pull request, with options to view file stats first or limit output to specific paths and sizes.
Instructions
Fetch the unified diff for a pull request. For a large PR, start with stat_only: true to see which files changed and how big the diff is, then pass paths to fetch only the parts you need. Output is capped at max_bytes (default 100 KB) and the tail is dropped with a note when it overflows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Bitbucket repo slug. | |
| paths | No | Limit the diff to these files or directories (repo-relative; a directory matches everything under it). | |
| pr_id | No | Pull request id. | |
| max_bytes | No | Maximum diff bytes to return. Default 100000. | |
| stat_only | No | Return a per-file summary (status, lines added/removed) plus totals instead of the diff text. | |
| workspace | No | Bitbucket workspace (slug). |