native_set_variable
Change a named variable's expression to recompute a parametric Shapr3D model; invalid or failing updates are rolled back and reported as errors.
Instructions
Change a variable, e.g. ("width", "60 mm") or ("hole_d", "width / 10"). The model recomputes; if a variable stops evaluating, a history step fails or bodies appear or vanish, the change is undone and an error is raised.
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>",
"expression": "<expression>"
},
"name": "native_set_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| expression | Yes |