Add a raw assembly feature
onshape_assembly_add_featureAdds a custom assembly feature by posting a hand-written JSON payload to a specified document, workspace, and element, covering mate types without dedicated tools.
Instructions
Post a hand-written assembly feature payload — the escape hatch for mate types with no tool here.
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>",
"feature": "<feature>"
},
"name": "onshape_assembly_add_feature"
}
}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. | |
| feature | Yes | The assembly feature JSON. |