git_diff
Display Git changes in a repository, including staged or specific file differences, using the Code MCP Server for seamless integration with AI agents and VS Code.
Instructions
Show git diff
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cwd | No | Repository path | |
file | No | Specific file to diff | |
staged | No | Show staged changes |
Input Schema (JSON Schema)
{
"properties": {
"cwd": {
"description": "Repository path",
"type": "string"
},
"file": {
"description": "Specific file to diff",
"type": "string"
},
"staged": {
"description": "Show staged changes",
"type": "boolean"
}
},
"type": "object"
}