read_diff
View only the changed hunks after editing a file, reducing token usage by avoiding full re-reads. Requires a prior baseline snapshot.
Instructions
Use INSTEAD OF re-reading whole file after edits. Shows only changed hunks. REQUIRES: call smart_read or read_for_edit BEFORE editing to create baseline snapshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path | |
| context_lines | No | Lines of context around changes (default: 3) |