validate_scad
Check OpenSCAD code for syntax errors and warnings without running a full render. Returns categorized errors, warnings, and echo output.
Instructions
Syntax-check OpenSCAD code without performing a full render.
Runs OpenSCAD with output directed to /dev/null (NUL on Windows) so it only parses and evaluates the code without generating geometry output. Much faster than a full render. Captures and categorizes ECHO, WARNING, ERROR, and DEPRECATED messages from stderr.
Args: scad_content: OpenSCAD code to validate (mutually exclusive with scad_file) scad_file: Path to OpenSCAD file to validate (mutually exclusive with scad_content) 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, valid flag, errors list, warnings list, echo_output list, and deprecated list
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scad_file | No | ||
| variables | No | ||
| scad_content | No | ||
| include_paths | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||