render
Preview 3D models by converting OpenSCAD code into an inline image and updating the live viewer if open.
Instructions
Render OpenSCAD code to a preview image. Returns the image inline. Also updates the live 3D viewer if open.
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": {
"code": "<code>"
},
"name": "render"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | OpenSCAD source code to render | |
| view | No | Camera position: 'translateX,translateY,translateZ,rotX,rotY,rotZ,distance' | |
| width | No | Image width in pixels | |
| height | No | Image height in pixels | |
| params | No | OpenSCAD variable overrides | |
| colorscheme | No | Color scheme name | Tomorrow Night |