export_assembly
Export an Onshape assembly to STL, STEP, or GLTF. Waits for the translation to complete, then saves the file locally and returns its path, size, and status.
Instructions
Export an Assembly to STL, STEP, or GLTF. Blocks until Onshape finishes the translation, downloads the bytes, and writes them to /tmp/onshape-mcp-exports/. Returns on-disk path, size, and final state.
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": "export_assembly"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Export format | STL |
| elementId | Yes | Assembly element ID | |
| documentId | Yes | Document ID | |
| workspaceId | Yes | Workspace ID | |
| timeoutSeconds | No | Max seconds to wait for translation | |
| pollIntervalSeconds | No | Seconds between status polls |