git_diff
Compare staged, unstaged, or revision changes with native patches and typed file metadata to inspect differences before committing or reviewing.
Instructions
Compare index/worktree or revisions with native patches and typed file metadata.
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 |
|---|---|---|---|
| base | No | ||
| mode | No | unstaged | |
| paths | No | ||
| target | No | ||
| context | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | ||
| mode | Yes | ||
| files | Yes | ||
| patch | Yes | ||
| target | No | ||
| process_ids | No | ||
| had_decoding_errors | No |