create_variable_studio
Create a new Variable Studio in an Onshape document to define shared variables. These variables become accessible across all Part Studios and can be referenced as #variable_name in expressions.
Instructions
Create a new Variable Studio in a document. Variables defined there are shared across all Part Studios in the document and referenced in expressions as #variable_name.
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 | |
| documentId | Yes | Document ID | |
| workspaceId | Yes | Workspace ID |