Mirror
mirrorCopies selected parts, features, or faces across a plane in Onshape to build symmetric geometry, with options to merge, cut, or intersect the copies.
Instructions
Mirror parts, features or faces across a plane. Mirroring a part gives a second part (operation 'new') or merges the copy into the original ('add'); mirroring the feature that makes one half builds a symmetric part. The default name shows the plane ('Mirror (Right)'). The reply says what changed (parts, volume).
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": {
"document_id": "<document_id>",
"element_id": "<element_id>",
"plane": "<plane>"
},
"name": "mirror"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| plane | Yes | Mirror plane: 'Top', 'Front' or 'Right' (the origin planes) or the ID of a planar face (from get_body_details). | |
| verify | No | Measure the Part Studio before and after (two extra requests) and report what changed: part count and total volume, plus a warning when nothing changed (Onshape can accept a feature that does nothing). Set false to save requests. | |
| face_ids | No | Repeat these faces (IDs from get_body_details). Give exactly one of part_ids, feature_ids and face_ids. | |
| part_ids | No | Repeat these whole parts (IDs from list_parts). Give exactly one of part_ids, feature_ids and face_ids. | |
| operation | No | Only for part_ids: 'new' makes each copy a separate part (default); 'add' merges the copies into existing parts; 'remove' cuts with them; 'intersect' keeps the overlap. | new |
| element_id | Yes | Element (tab) ID: the string after /e/ in the Onshape URL. Get it from get_document. | |
| merge_with | No | Part IDs the copies merge with when operation is 'add', 'remove' or 'intersect' (default: every part they touch). | |
| document_id | Yes | Onshape document ID: the 24-character hex string after /documents/ in the document URL. Get it from list_documents. | |
| feature_ids | No | Repeat these features (feature_id of an extrude or other feature, e.g. one spoke of a wheel); each copy merges the way the feature does. Give exactly one of part_ids, feature_ids and face_ids. | |
| workspace_id | No | Workspace ID (the string after /w/ in the URL). Optional - defaults to the document's main workspace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||