git_diff
Display differences between working tree and index, or show staged changes for a specific file in a given repository path.
Instructions
Show git diff
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 |
|---|---|---|---|
| staged | No | Show staged changes | |
| file | No | Specific file to diff | |
| cwd | No | Repository path |