get_commit_diff
Read the raw diff between a base and head revision, optionally limited to a file path, and paginate large outputs by offset to retrieve complete changes.
Instructions
Read the raw diff from base to head, optionally restricted to a file.
Follows git diff base head semantics. A large response is clipped explicitly;
pass next_offset to read the next chunk with the same revisions/path. Pin
revisions to hashes when chunking so moving branches cannot change the diff.
max_chars is clamped to 1-100000. Bitbucket may reject oversized diffs (555);
narrow with path in that case. Binary differences may have no text patch.
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>",
"base": "<base>",
"head": "<head>"
},
"name": "get_commit_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | ||
| head | Yes | ||
| path | No | ||
| offset | No | ||
| max_chars | No | ||
| repo_slug | Yes |