sassy_edit_multi
Apply multiple surgical text replacements to one file in a single call. Aborts the entire batch if any old text lacks a unique match, and snapshots the file to staging first.
Instructions
Mutating: applies several surgical edits to one existing file in a single call, with the prior contents snapshotted into the adjacent DELETE/ staging folder first. edits is a JSON string array of {"old", "new"} objects, applied in order against the evolving content. Any edit whose old text has zero or more than one match aborts the whole call before anything is written, so nothing is partially applied. The file must exist and protected paths are refused. Returns only a count of applied edits, no preview. Use it to batch multiple unique-match changes in one file; use sassy_edit_block when you want a single edit with a context preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| edits | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |