Edit batch
edit_batchApply multiple file edits atomically, rolling back every changed file if any edit fails so multi-file changes land completely or not at all.
Instructions
Apply edits across one or more files all-or-nothing. Each item takes edit_file arguments (relative_path, old_text, new_text, ...). The first failure rolls back every touched file from an automatic snapshot and skips the rest. Use when: a change spans several files or sections and must land completely or not at all. Avoid when: you make one edit (edit_file). Output: success: per-edit {relative_path, replacements, sha256_after}. Failure: ok=false, error batch_failed, data {executed, skipped, rollback_succeeded, snapshot_id}.
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": "edit_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | Yes | edit_file argument objects (typed like edit_file). Unknown fields are rejected with a did-you-mean hint and nothing is applied. |