git_diff
Show unstaged changes for a repository by default, staged changes when requested, and optionally filter by file path.
Instructions
Show git diff output for a repository. By default shows unstaged changes; set staged=true for staged changes. Optionally scope to a specific file path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path inside the repo, or a specific file (default: repo root). | . |
| staged | No | Show staged (cached) changes instead of unstaged (default false). |