validate_openscad_code
Check OpenSCAD code for errors and warnings without rendering. Returns compile results with line numbers to fix issues before generating models.
Instructions
Validate OpenSCAD code without generating geometry.
Compiles the code and returns structured error/warning information
with line numbers. Use this to check code before calling
generate_model with OpenSCAD.
:param code: OpenSCAD source code to validate.
:returns: Dict with ``valid``, ``errors``, and ``warnings``.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |