apply_patch
Apply a multi-file unified diff requiring exact context matching. Each hunk must apply cleanly to modify code files.
Instructions
Apply a multi-file unified diff. Hunks must apply cleanly with exact context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | Yes | Unified diff. Multiple files supported. Each file header must be `--- a/<path>` then `+++ b/<path>`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| requiresHarnessSession | Yes | ||
| error | Yes | ||
| _hints | Yes |