transaction
Apply a batch of file create/write/update/move/delete operations atomically. If any operation fails, all prior operations are reverted from backups.
Instructions
Apply a batch of file create/write/update/move/delete operations atomically. If any operation fails (and rollbackOnError is true, the default), all prior operations in the batch are reverted from on-disk backups. This is the one thing the agent's built-in per-file Edit cannot do.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operations | Yes | Ordered list of file operations to execute as one atomic batch. | |
| rollbackOnError | No | When true (default), any failure rolls all completed ops in the batch back from backup. |