get_pull_request_diff
Retrieve code changes from a Bitbucket pull request to review modifications, optionally focusing on specific files or adjusting context lines for clarity.
Instructions
Get the diff (code changes) for a Pull Request.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID file_path: Optional specific file path to get diff for (recommended for large PRs) context_lines: Number of context lines around changes (default: 3) workspace: Bitbucket workspace (optional if configured)
Returns: The diff content as text
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_slug": "<repo_slug>",
"pr_id": "<pr_id>"
},
"name": "get_pull_request_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_slug | Yes | ||
| pr_id | Yes | ||
| file_path | No | ||
| context_lines | No | ||
| workspace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||