Add a mate connector
onshape_assembly_mate_connectorPlace an implicit mate connector on an instance by inference (CENTROID, TOP, ...). Its feature id is what onshape_assembly_mate then joins.
Instructions
Place an implicit mate connector on an instance by inference (CENTROID, TOP, ...). Its feature id is what onshape_assembly_mate then joins.
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>",
"occurrence": "<occurrence>"
},
"name": "onshape_assembly_mate_connector"
}
}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 connector"). | |
| validate | No | Re-read the feature list afterwards and fail if the feature regenerated with an error (default true). | |
| inference | No | Inference type, e.g. CENTROID, TOP, MID_PLANE (default CENTROID). | |
| occurrence | Yes | Occurrence id of the instance to attach to. |