compile_scad
Compile OpenSCAD code or .scad files into STL meshes for 3D printing, with BOSL2 library support and adjustable timeout for surface() heightmap operations.
Instructions
Compile OpenSCAD code into an STL file.
Takes OpenSCAD source code OR a path to a .scad file, compiles
it using the local OpenSCAD binary, and returns the path to the
generated STL. Supports Kiln's bundled BOSL2 library.
For surface() heightmap operations (photo emboss, lithophane),
increase timeout to 600+ seconds.
Args:
scad_code: Valid OpenSCAD source code (provide this OR scad_path).
scad_path: Path to a .scad file (provide this OR scad_code).
timeout: Maximum compilation time in seconds (default 300).INLINE 3D STAGE: on success this tool also opens Kiln's interactive 3D stage — an inline viewer panel the user can orbit, zoom, and turn over — in hosts that render MCP Apps panels (Kiln's hosted connection attaches a browser stage link for hosts that don't). Oversized meshes are decimated automatically for the stage; the PNG preview is the floor, not the whole experience.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| scad_code | No | ||
| scad_path | No |