get_commit_diff
Retrieve the unified diff for any commit to review all code changes. Shows added, removed, and modified lines in standard patch format.
Instructions
Get the diff/patch of a specific commit showing all changes made. Returns unified diff format.
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>",
"commit_id": "<commit_id>"
},
"name": "get_commit_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commit_id | Yes | The commit hash (SHA). | |
| repo_slug | Yes | The repository slug. | |
| workspace | No | The workspace slug. Optional if BITBUCKET_WORKSPACE env var is set. |