Git Diff
git_diffShow staged and unstaged changes in a Git repository to inspect modifications before committing. Optionally limit output to staged changes and specify the repository path.
Instructions
Show staged and unstaged changes (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 | If True, show only staged changes (git diff --cached). | |
| repo_path | No | Path to the git repository. | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |