enhanced_git_diff
Display git changes in multiple formats like unified, side-by-side, or word-diff to analyze code modifications with customizable options for context, whitespace, and color output.
Instructions
Show git diff with multiple format options (unified, side-by-side, stat, word-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": "enhanced_git_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| staged | No | Show staged changes | |
| file | No | Specific file to diff | |
| format | No | Diff format | |
| contextLines | No | Number of context lines (default: 3) | |
| ignoreWhitespace | No | Ignore whitespace changes | |
| colorOutput | No | Enable color output | |
| commit1 | No | First commit for comparison | |
| commit2 | No | Second commit for comparison | |
| cwd | No | Working directory |