get_diff
Inspect code changes between two Git refs without cloning. Returns a unified diff, optionally limited to file paths, for comparing branches, tags, or commits.
Instructions
Returns the unified git diff between two refs, optionally restricted to specific file paths. Use to inspect code changes without cloning. Output is truncated at max_bytes (default 60KB; narrow with paths).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Base branch, tag, or commit SHA. | |
| head | Yes | Head branch, tag, or commit SHA. | |
| repo | Yes | Repository name. | |
| owner | Yes | Repository owner (organization or user). | |
| paths | No | Optional file paths to restrict diff output. | |
| max_bytes | No | Maximum UTF-8 bytes to return before truncation (default: 60000). |