model_build
Build or modify a 3D model by applying a batch of operations atomically, with per-operation results and an optional four-view preview.
Instructions
Build or change the 3D model with a batch of operations (atomic: all apply or none, one undo step for the user). Same operations the UI uses. Returns per-op results (new ids, edge convexity) and the model summary; look:true also returns a picture of the 4 views. See the server instructions for the op list, connector names and mate rules.
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": {
"ops": "<ops>"
},
"name": "model_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | zoom the user's views to fit afterwards (default true) | |
| ops | Yes | Operations, applied in order. Each is an object with "op": add | set | mate | unmate | boolean | separate | edge | weld | pattern | extrude | loft | revolve | sweep | delete | origin | ground | fix | cleanup | dim | setdim | dimaxis | undim | var | link | unlink | joint | drive | suppress | rollback | move | duplicate | rename | material | addon | callout. | |
| look | No | also return a PNG of the views after building (default false) | |
| label | No | Undo-history label the user sees, e.g. "Add mounting holes" | |
| layout | No | with look: which view(s) to picture | |
| relative | No | positions (at, near) are measured from the model origin, like model_describe reports them (default true) |