get_diff
Compare git refs or the working tree to review recent changes in a Typleaf project, with options to filter by file and control context.
Instructions
Get a git diff between refs or the working tree. Useful for reviewing recent changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_ref | No | End ref. Omit for working tree. | |
| from_ref | No | Start ref (e.g. 'HEAD~3', commit hash). Default: HEAD | |
| file_path | No | Filter to a specific file | |
| max_chars | No | Truncate diff to N chars (default 120000) | |
| project_id | Yes | Typleaf project ID — a 24-character lowercase hex string (e.g. '692a83fb82feceb233c4b0e7'), obtained from list_projects or the project URL. NOT a local filesystem path, NOT '.', NOT a project name or title. These tools operate on the REMOTE Typleaf project. Only call these tools when the user explicitly asks to work with a Typleaf project — never for general local file I/O. If you already have a copy of THIS project checked out on the local filesystem, prefer the standard read/grep tools against that path. Always call list_projects first when unsure. | |
| context_lines | No | Diff context lines (0-10, default 3) |