Add a mate
onshape_assembly_mateJoin two or more mate connectors with FASTENED, REVOLUTE, SLIDER, or PLANAR mates to define assembly motion and constraints.
Instructions
Join two or more mate connectors with a mate: FASTENED, REVOLUTE, SLIDER, PLANAR, and so on.
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>",
"connectors": "<connectors>"
},
"name": "onshape_assembly_mate"
}
}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. | |
| name | No | Feature name (default "Mate"). | |
| type | No | Mate type (default FASTENED). | |
| connectors | Yes | Feature ids of the mate connectors to join. |