git_diff
Read a git diff from a local repository to inspect unstaged or staged changes. Specify an optional ref, range, or pathspec to view exactly the modifications you need.
Instructions
Read a git diff from the local repository.
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 |
|---|---|---|---|
| cwd | No | Optional local working directory or repository path. | |
| ref | No | Optional ref, range, or pathspec to diff. | |
| staged | No | Use git diff --staged. |