git_diff
Generate a unified diff of uncommitted changes, staged files, or against a specific ref, optionally limited to one file.
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 |