git-diff
Compare Git changes between HEAD and an ancestor branch or commit to analyze code modifications for review or documentation.
Instructions
Get a diff between the HEAD and the ancestor branch or 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": {
"ancestor": "<ancestor>"
},
"name": "git-diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ancestor | Yes | The ancestor commit hash or branch name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |