Batch
batchApplies multiple modeling operations as one atomic, undoable step; restores the model and returns VERIFY_FAILED if verification fails.
Instructions
Several operations as ONE atomic step (one Ctrl+Z): all succeed or the model is restored. Returns a receipt: created object handles, volume/mass before and after, backup path. The whole call is ONE Ctrl+Z for the user; if verification fails the model is restored and VERIFY_FAILED is returned.
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": {
"doc": "<doc>",
"ops": "<ops>"
},
"name": "batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Document handle from doc_list/doc_open, e.g. 'doc:12001:0a1b2c3d' | |
| ops | Yes | [{op:'sketch'|'extrude'|'revolve'|'fillet_chamfer'|'shell'|'pattern'|'aux_plane'|'hole'|'sweep'|'loft'|'thread'|'rib'|'draft', ...same arguments as the single tools...}]; boss/cut of extrude/revolve/sweep/loft goes as operation:'cut'. Refer to the result of op N as '$N', e.g. extrude {sketch:'$0'}. | |
| dry_run | No | build, verify, then undo; report what would happen |