git_diff
View unstaged, staged, or all code changes in a project. Returns a structured summary, file list, and size-limited diff without modifying anything.
Instructions
Structured read-only git diff for a registered project root. mode=unstaged|staged|both. Returns numstat summary, file list, and a byte-capped unified diff with truncated=true when clipped. Optional path under root. lease_id optional. No mutations. For uncovered Git ops use exec_run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | both | |
| path | No | ||
| project | No | demo | |
| lease_id | No | ||
| max_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||