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.
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": {
"description": "<description>",
"operations": "<operations>"
},
"name": "apply_document_transaction"
}
}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 |