batch_edit
Apply multiple exact substring replacements across one or more files atomically, validating all edits first and aborting all changes if any fails while preserving CRLF/LF and UTF-8 BOM.
Instructions
Apply multiple exact substring replacements across one or more files atomically (validates all edits in memory first; aborts all if any fails; preserves CRLF/LF & UTF-8 BOM).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"edits": "<edits>"
},
"name": "batch_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | Yes | Ordered list of edits to apply atomically | |
| dryRun | No | Preview validation without writing files |