Get git diff
get_git_diffView git changes without modifying the repo. Choose between working-tree and staged diffs for a project path.
Instructions
Run a read-only git diff for a project directory inside an allowed root.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectPath": "<projectPath>"
},
"name": "get_git_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| staged | No | Return staged diff instead of working-tree diff. | |
| projectPath | Yes | Absolute project directory path. |