emacs_git_diff
Retrieve git diffs for staged, unstaged, or committed changes, optionally filtered by file or commit.
Instructions
Get diff for staged, unstaged, or committed changes
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": {
"type": "<type>"
},
"name": "emacs_git_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Specific file to diff (optional) | |
| type | Yes | Type of diff to show | |
| commit | No | Commit hash (for committed diffs) |