create_variable_studio
Create a Variable Studio element in a specified workspace and document. Use the returned element ID to set or get variables in modern Onshape documents.
Instructions
Create a Variable Studio element in a workspace. Required before set_variable on modern Onshape docs -- the legacy Part Studio /variables write path is read-only. Returns the new VS element id; use it as elementId for set_variable / get_variables.
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>",
"name": "<name>"
},
"name": "create_variable_studio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the new Variable Studio element | |
| documentId | Yes | Document ID | |
| workspaceId | Yes | Workspace ID |