Extrude
part_extrudeCreate boss or cut extrusions from a sketch, with verified volume changes, a backup, and undo in a single step. Rejects cuts that remove no material.
Instructions
Boss or cut extrusion of a sketch. Verified: boss must add volume, cut must remove it; a cut that goes away from the material is rejected (then try direction='reverse'). 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>",
"sketch": "<sketch>"
},
"name": "part_extrude"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | boss | |
| doc | Yes | Document handle from doc_list/doc_open, e.g. 'doc:12001:0a1b2c3d' | |
| name | No | Meaningful feature name for the tree, e.g. 'Отв_крепёжные_6xD11' | |
| depth | No | mm (ignored with through=true) | |
| depth2 | No | second side depth for direction='both' | |
| sketch | Yes | obj: handle from inspect_model/receipt, or '$N' inside batch | |
| through | No | through all (cut) | |
| new_body | No | boss as a SEPARATE body (multi-body part, then part_body) | |
| direction | No | normal |