parse_scad_parameters
Discover which OpenSCAD dimensions are adjustable by extracting parameter values, units, descriptions, ranges, and derived dependencies from source code.
Instructions
Parse parameter variables from OpenSCAD code.
Extracts named dimension variables from the top of an OpenSCAD
file, including their values, units, descriptions, and valid
ranges (if annotated in comments).
Use this after generating OpenSCAD code to discover which
parameters can be adjusted. A parameter computed from others
(``inner = outer - 2*wall;``) is returned with ``derived: true``,
its ``expression`` and ``depends_on``; it moves when those
change and cannot be set directly.
Args:
scad_code: OpenSCAD source code string.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"scad_code": "<scad_code>"
},
"name": "parse_scad_parameters"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scad_code | Yes | OpenSCAD source code string. |