git_diff
Generate unified diffs for your working tree, staged changes, or any ref, optionally for one file. Use it to review modifications before committing.
Instructions
Full unified diff of the working tree (or staged changes, or against a ref), optionally for one file.
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 |
|---|---|---|---|
| ref | No | ||
| file | No | ||
| path | No | Repository directory (default: default workspace) | |
| staged | No |