bb_get_pr_file_diff
Retrieve the line-by-line diff for a specific file in a Bitbucket pull request, using the PR ID and file path to pinpoint changes.
Instructions
Get the line-by-line diff for one specific file in a pull request
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": {
"pr_id": "<pr_id>",
"file_path": "<file_path>"
},
"name": "bb_get_pr_file_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr_id | Yes | Pull request ID | |
| file_path | Yes | Path of the file to diff | |
| repo_slug | No | Repository slug/name; defaults to the repo detected from the current directory's git remote | |
| workspace | No | Bitbucket workspace |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |