Show git diff
git.diffShow read-only Git diffs for staged or unstaged changes, with optional path filtering, without modifying repository state.
Instructions
Read-only git diff. Never modifies repository state.
Args: path: Optional repository-relative path to filter the diff. staged: Show staged changes (git diff --cached) instead of unstaged ones.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| staged | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | Yes | ||
| path | Yes | ||
| binary | No | ||
| staged | Yes | ||
| additions | No | ||
| deletions | No |