export_model
Export OpenSCAD code or files to STL, 3MF, AMF, OFF, DXF, or SVG for 3D printing, CAD, or vector graphics.
Instructions
Export OpenSCAD code or file to STL, 3MF, AMF, OFF, DXF, or SVG.
Args: scad_content: OpenSCAD code to export (mutually exclusive with scad_file) scad_file: Path to OpenSCAD file (mutually exclusive with scad_content) output_format: Export format - "stl", "3mf", "amf", "off", "dxf", or "svg" (default: "stl") output_path: Path to write the exported file. If not specified, a temp directory is used. variables: Variables to pass to OpenSCAD via -D flags include_paths: Additional include paths for OpenSCAD via the OPENSCADPATH environment variable ctx: MCP context for logging
Returns: Dict with success status, output_path, format, and file_size_bytes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scad_file | No | ||
| variables | No | ||
| output_path | No | ||
| scad_content | No | ||
| include_paths | No | ||
| output_format | No | stl |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||