execute_batch
Execute or preview validated batches of allowlisted CAD operations with explicit document ownership; atomic batches roll back on failure, while nonatomic batches stop at the first error.
Instructions
Execute or preview allowlisted CAD operations with explicit document ownership.
Atomic batches use one existing document and one Undo record. Nonatomic
batches may span documents, stop at first error and retain earlier successes.
Preview never executes geometry. Results report each step as planned,
succeeded, failed, rolled_back, unknown or not_executed; inspect status.
Deletion accepts only unreferenced leaf objects. No persistent preview token,
retries, distributed transaction, file rollback or guaranteed kernel cancel.
Errors: invalid_batch, transaction_conflict, dependency_conflict and reference/
kernel/transport errors. A timeout means unknown outcome, never automatic retry.Contract: explicit internal names recommended. Length mm, area mm^2, volume mm^3; field units override defaults. Errors: invalid_arguments, document_not_found, object_not_found, transaction_conflict, operation_failed, execution_timeout; transport failures are possible. Timeout is not cancellation: never blindly retry mutations. Legacy return shape preserved.
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": {
"steps": "<steps>"
},
"name": "execute_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | Ordered 1..100 steps, max 65536 UTF-8 JSON bytes. All validated before mutation. | |
| atomic | No | True: one existing document, one Undo record and rollback. False: multiple documents, stop on first error. | |
| preview | No | Validate and describe effects without executing geometry or mutating documents. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| status | Yes | ||
| warnings | No | ||
| references | No | ||
| contract_version | No | 1.0 |