git_diff
Compare code changes in Git repositories to identify modifications between commits, branches, or working directory states.
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 |