git_diff
Return repository diff statistics and optional patch text for any ref or range. Limit by file path to quickly see what changed.
Instructions
Return the git diff for a repository (stat + optional patch). Prefer stat_only=True for orientation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Diff target ref or range. Examples: "HEAD~1" (last commit), "main...HEAD" (branch diff), "abc123" | HEAD~1 |
| path | No | Repo-relative file path to limit the diff scope (optional). Leave empty for the full diff. | |
| repo | Yes | Repository name from list_repositories(), e.g. "pypto" | |
| stat_only | No | When True return only file-level statistics (no patch text). Useful for large diffs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||