compile_scad
Compile OpenSCAD source code or .scad file into an STL file for 3D printing. Supports BOSL2 library and adjustable timeout for complex operations like heightmaps.
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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| scad_code | No | ||
| scad_path | No |