Render views
render_viewsRender PNG images of an OpenSCAD design from chosen sides with console output to verify geometry before export; override parameters for one render without editing the file.
Instructions
OpenSCAD: renders PNG images of a design from the chosen sides (iso, iso_back, front, back, left, right, top, bottom; default iso, front, top, right) and returns them with the console output. Mode "render" (the default when OpenSCAD has the Manifold backend) shows the exact geometry that would be exported. Mode "preview" is OpenSCAD's quick OpenCSG view with $preview = true; it can show holes or missing faces that are not in the model. params overrides parameters for this render only, without changing the file.
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>"
},
"name": "render_views"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Default: "render" with the Manifold backend, otherwise "preview". | |
| name | Yes | Design name, e.g. "broom-holder-28mm". Stored as lower-case letters, digits and dashes. | |
| views | No | Sides to render. Default: iso, front, top, right. | |
| params | No | Parameter overrides as name → value, e.g. {"pole_diameter": 32, "label": "A"}. Values are numbers, booleans, strings or lists of those. |