patch_file
Apply a unified diff patch to a file. Send only changed lines to save tokens on large files.
Instructions
Apply a unified diff patch to a file. The AI only sends changed lines, not the full file — saves tokens on large files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Relative file path to patch | |
| patch | Yes | Unified diff string (hunks starting with @@ -L,N +L,N @@) |