apply_edits
Atomically apply a batch of edits to a file, rolling back on any failure. Use to safely land a planned sequence of changes.
Instructions
Atomic batch: open once → apply ops → lint → save once. Opens an internal transaction against path, dispatches each {tool, args} op through the JSON-RPC tools/call path with transaction_id injected, and commits at the end. On any op failure or lint-error at commit, rolls back — disk is byte-identical to its pre-call state. Compare with dry_run_edit (clones to tempfile, never touches the real file): use dry_run_edit to preview a plan, apply_edits to land it. Returns {applied: [{tool, ok, result|error}], verify, committed}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | Ordered list of tool calls to apply atomically. | |
| path | Yes |