Update a design
update_designChange an OpenSCAD design by exact text replacements or full code, validate it, and save the result as a new version while earlier versions stay available. Returns a rendered preview when the code is valid.
Instructions
OpenSCAD: changes a design and saves the result as a new version, either with edits (exact text replacements, the rest of the code stays untouched) or with the complete new code. Validates like create_design and returns an image of the rendered model when the code is valid. Earlier versions stay available.
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": "update_design"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Complete new source. Use this or `edits`. | |
| name | Yes | Design name, e.g. "broom-holder-28mm". Stored as lower-case letters, digits and dashes. | |
| note | No | What changed, for the version history. | |
| edits | No | Targeted replacements, applied in order. Use this or `code`. | |
| preview | No | Attach an isometric image of the model when the code is valid. Default: true (server setting). |