Create a design
create_designSaves new OpenSCAD code as a versioned design, validates it with OpenSCAD, reports errors/warnings/echo with source lines, and returns an isometric preview for valid models; duplicate names fail.
Instructions
OpenSCAD: saves new SCAD code as a design (version 1), validates it with OpenSCAD and returns errors, warnings and echo output with the affected source lines. A valid design comes back with an isometric image of the rendered model. Fails when the name is taken.
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": {
"name": "<name>",
"code": "<code>"
},
"name": "create_design"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Complete OpenSCAD source of the design. | |
| name | Yes | Design name, e.g. "broom-holder-28mm". Stored as lower-case letters, digits and dashes. | |
| preview | No | Attach an isometric image of the model when the code is valid. Default: true (server setting). | |
| description | No | One line on what the part is and what it is for. |