git_diff
Get the current git diff, with options to show staged changes or limit to a specific file path.
Instructions
Return the current git diff, optionally for staged changes or one path.
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 |
|---|---|---|---|
| path | No | ||
| cached | No | ||
| repo_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |