apply_patch
Applies OpenCode patch documents to add, delete, update, or move files using formatted headers and directives.
Instructions
Apply an OpenCode patch document. Wrap one or more file operations in *** Begin Patch and *** End Patch. Use *** Add File, *** Delete File, or *** Update File headers. New lines in an added file must begin with +. Updates may include a *** Move to: path directive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patchText | Yes | The full patch text that describes all changes to be made |