validate_openscad_code
Checks OpenSCAD code for errors and warnings without rendering geometry, returning structured feedback with line numbers to verify code before generation.
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 |