validate_openscad_code
Check OpenSCAD code for errors and warnings before generating 3D models. Returns structured feedback with line numbers to fix issues.
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 |