onshape_set_variables
Sets named variables and expressions in an Onshape Variable Studio, replacing the table to drive parametric CAD models.
Instructions
Set variables in a Variable Studio (replaces the table). Each item: {"name": "width", "type": "LENGTH", "expression": "25 mm", "description": ""}. type is one of LENGTH, ANGLE, NUMBER, ANY.
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": {
"did": "<did>",
"wid": "<wid>",
"eid": "<eid>",
"variables": "<variables>"
},
"name": "onshape_set_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| did | Yes | ||
| eid | Yes | ||
| wid | Yes | ||
| variables | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |