apply_patch
Replace an exact string in a text file with new text, and fail if the number of occurrences differs from expectedReplacements.
Instructions
Exact string replacement patch for one text file. Fails if replacement count differs from expectedReplacements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| newText | Yes | ||
| oldText | Yes | ||
| expectedReplacements | No |