Get git diff
get_git_diffView git changes without modifying the repo. Choose between working-tree and staged diffs for a project path.
Instructions
Run a read-only git diff for a project directory inside an allowed root.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| staged | No | Return staged diff instead of working-tree diff. | |
| projectPath | Yes | Absolute project directory path. |