git_diff
Returns diffs of modified or staged changes, optionally scoped to a file or repository directory, so you can review what changed before committing or integrating.
Instructions
Returns git diff of modified files or staged changes
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "git_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional repository working directory | |
| file | No | Specific file path to diff | |
| staged | No | Whether to inspect staged changes (--cached) |