get_diff
Retrieve diff of code changes from git repos or directories. Shows unified diff for directories and git diff for repos, enabling review of modifications.
Instructions
Get diff output. For git repos returns git diff; for plain directories returns file contents in unified diff format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Path to the directory or git repository (defaults to server working directory) | |
| path | No | Filter diff to a specific file or directory | |
| type | No | Which changes to diff. Only used for git repos. |