apply_document_transaction
Apply a validated multi-step document mutation atomically, with precondition checks, dry-run preview, and automatic rollback on failure.
Instructions
Executes an atomic, validated multi-step document mutation with precondition checks, dry-run preview, and automatic rollback on failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| atomic | No | If true, rolls back the entire batch if any operation fails (default: true). | |
| dryRun | No | If true, simulates execution and returns validation without modifying the canvas. | |
| fileId | No | Optional target file ID. | |
| operations | Yes | Ordered list of operations to apply atomically. | |
| description | Yes | Clear intent explanation for the transaction. | |
| preconditions | No |