Get the bill of materials
onshape_get_bomRetrieve the bill of materials (BOM) for an Onshape assembly by providing document, workspace, and element IDs. Optionally expand sub-assemblies or return an indented BOM.
Instructions
The assembly's BOM table.
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. | |
| indented | No | Return the indented BOM (default true). | |
| multi_level | No | Expand sub-assemblies (default false). |