get_git_diff
Retrieve the deterministic Git diff of repository changes to inspect modifications, optionally scoped by path or staged status.
Instructions
Retrieve the deterministic Git diff of changes made in the repository.
Args: path: Optional relative file or directory path to scope the diff. cached: If True, inspects staged changes (git diff --cached) (default: False).
Returns: JSON string containing diff string, has_changes boolean, and changed_files list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| cached | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |