get_file_diff
Retrieve the diff between two commits or branches for a file or all files in a Bitbucket repository.
Instructions
Get the diff between two commits or branches for a specific file or all files
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>",
"repoSlug": "<repoSlug>",
"fromRef": "<fromRef>",
"toRef": "<toRef>"
},
"name": "get_file_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Optional specific file path to diff | |
| toRef | Yes | The target commit/branch/tag | |
| fromRef | Yes | The source commit/branch/tag | |
| repoSlug | Yes | The repository slug | |
| projectKey | Yes | The project key (e.g., PROJ) |