Transform instances
onshape_transform_instanceTransform assembly instances by applying a 4x4 row-major matrix to specified occurrence paths, optionally treating the transform as absolute instead of relative.
Instructions
Apply a 4x4 row-major transform (16 numbers, metres) to the given occurrence paths.
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": {
"doc": "<doc>",
"ws": "<ws>",
"elem": "<elem>",
"paths": "<paths>",
"transform": "<transform>"
},
"name": "onshape_transform_instance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ws | Yes | Workspace id — the <ws> segment of the document URL. | |
| doc | Yes | Document id — the <doc> in cad.onshape.com/documents/<doc>/w/<ws>/e/<elem>. | |
| elem | Yes | Element id (tab) — the <elem> segment of the document URL. | |
| paths | Yes | Occurrence paths, each an array of node ids. | |
| absolute | No | Treat the transform as absolute rather than relative. | |
| transform | Yes | Row-major 4x4 transform matrix. |