scad_compile
Compile OpenSCAD code into STL files using the CGAL engine. Produces geometric output ready for printability validation.
Instructions
Compile OpenSCAD code to STL via CGAL. Always follow with scad_validate_printability on the result.
output_path: relative paths resolve against MCP server cwd (so "cube.stl"
lands in your project dir, not Blender's). Omit to write to a tempdir.
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": "scad_compile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout | No | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |