render_openscad
Convert OpenSCAD code into PNG images in headless mode by specifying code, output path, and camera parameters. Use the OpenSCAD MCP Server for GUI-free rendering.
Instructions
Render OpenSCAD code to PNG using OpenSCAD in headless mode
Input Schema
Name | Required | Description | Default |
---|---|---|---|
camera | No | Camera parameters: translate_x,y,z,rot_x,y,z,dist or eye_x,y,z,center_x,y,z | |
code | Yes | The OpenSCAD code to render | |
output_path | Yes | Path where the rendered PNG image should be saved |
Input Schema (JSON Schema)
{
"properties": {
"camera": {
"description": "Camera parameters: translate_x,y,z,rot_x,y,z,dist or eye_x,y,z,center_x,y,z",
"type": "string"
},
"code": {
"description": "The OpenSCAD code to render",
"type": "string"
},
"output_path": {
"description": "Path where the rendered PNG image should be saved",
"type": "string"
}
},
"required": [
"code",
"output_path"
],
"type": "object"
}