apply_patch
Apply a context-checked patch to a file in a writable repository, replacing old text with new text. Create a new file when old text is empty and create is enabled.
Instructions
Apply a bounded, context-checked patch to a file in a writable repository. If old_text is empty and create=true, creates the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| repo | Yes | ||
| create | No | ||
| context | No | ||
| new_text | Yes | ||
| old_text | Yes |