Multi-file find/replace in one call
apply_editsApply find/replace edits across MANY files in one tool call. Batch sibling of update_file_content. Per-file edit semantics identical (count: 1 default, -1 = all, positive int asserts exact count). Whole call is atomic across files: validation runs first, writes only proceed if every edit's count check passes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| files | Yes | Files + edits to apply. Up to 25 files / 200 total edits per call. All-or-nothing: if any edit's match count differs from its expected count, NOTHING is written. | |
| target | No | Tree to edit, dist (default) or source. Same tree applies to every file in this call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| files | Yes | ||
| siteId | Yes | ||
| target | Yes | ||
| request_id | No | Server-assigned request correlation id. Quote it when contacting support. | |
| totalEdits | Yes |