cad_set_variable
Set or update a part studio variable by name and expression. Re-setting the same name updates it in place, avoiding duplicates.
Instructions
Set a part-studio variable (assignVariable), update-or-create: re-setting the same name updates it in place instead of adding a duplicate. expression e.g. '2.4 in' or '#other*2'.
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": {
"documentId": "<documentId>",
"workspaceId": "<workspaceId>",
"elementId": "<elementId>",
"name": "<name>",
"expression": "<expression>"
},
"name": "cad_set_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | Yes | ||
| workspaceId | Yes | ||
| elementId | Yes | ||
| name | Yes | ||
| expression | Yes |