get_commit_diff
Retrieve the diff for a specific commit in a Bitbucket project, showing file changes and optional context lines.
Instructions
Get the diff for a specific commit.
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": {
"projectKey": "<projectKey>",
"repositorySlug": "<repositorySlug>",
"commitId": "<commitId>"
},
"name": "get_commit_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commitId | Yes | The commit hash | |
| projectKey | Yes | The Bitbucket project key | |
| contextLines | No | Number of context lines (default: 10) | |
| repositorySlug | Yes | The repository slug |