project_diff
Inspect Git status and unified diffs of a project's working tree against HEAD, a specified commit, or staged changes to review code modifications.
Instructions
Git status and unified diff of the working tree (vs HEAD, vs 'commit', or staged only).
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": "project_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Local project directory. Defaults to the server's working directory. | |
| commit | No | Revision to compare the working tree against. | |
| format | No | Output format: 'markdown' (default) or 'json' (structured envelope). | markdown |
| staged | No | Show staged changes only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |