Set parameters
set_parametersUpdates a design's default OpenSCAD parameter values and saves a new version; omit params to list parameters with types, values, ranges, and descriptions.
Instructions
OpenSCAD: changes the default values of a design's parameters in the file (the plain assignments at the top that OpenSCAD's Customizer also offers) and saves the result as a new version. Only the values change; code and comments stay as they are. Called without params it lists the parameters with type, current value, range and description.
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": {
"name": "<name>"
},
"name": "set_parameters"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Design name, e.g. "broom-holder-28mm". Stored as lower-case letters, digits and dashes. | |
| params | No | Parameter overrides as name → value, e.g. {"pole_diameter": 32, "label": "A"}. Values are numbers, booleans, strings or lists of those. | |
| preview | No | Attach an image of the changed model. Default: true. |