bitbucket_get_pull_request_diff
Obtain the full unified diff of a pull request to inspect every code change, including added, modified, and deleted lines across all files.
Instructions
Get the full code diff (all changed files and lines) for a pull request.
Returns the unified diff of all changes included in the PR so you can review exactly what new code was added, modified, or removed.
For Bitbucket Cloud the response is a raw unified diff string. For Bitbucket Server/DC the response is structured JSON containing per-file diff hunks.
Args: workspace: Workspace name or project key. repository: Repository name. pull_request_id: Pull request ID.
Returns: JSON string wrapping the diff content and metadata.
Raises: ValueError: If the Bitbucket client is not configured or available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | Workspace name (Cloud) or project key (Server/DC) | |
| repository | Yes | Repository name | |
| pull_request_id | Yes | Pull request ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |