bb_get_pr_diffstat
Retrieve per-file and total added/removed line counts for a Bitbucket pull request to quickly assess the scope of changes.
Instructions
Get the diffstat for a pull request: every modified file with its added/removed line counts and a totals summary
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>"
},
"name": "bb_get_pr_diffstat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr_id | Yes | Pull request ID | |
| 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 |