get_pr_diff
Fetch a pull request's unified diff as plain text, with automatic truncation at line boundaries to prevent timeouts on large diffs.
Instructions
Returns the unified diff for a pull request as plain text, capped by default at 100,000 characters (maxChars, hard cap 400,000). Truncation always lands on a line boundary and the response always reports truncated/returnedChars so a truncated diff is never mistaken for the complete one. On very large diffs Bitbucket may time out (HTTP 555); prefer get_pr_commits or a smaller maxChars instead of retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| pr_id | Yes | ||
| maxChars | No | ||
| workspace | No |