List Bodies
list_bodiesLists the active part's solid bodies with names, volumes, and bounding boxes. Use before body operations to get the exact body names they require.
Instructions
Beta: new: checked on SolidWorks by a scratch run, not yet by a live demo.
List the active part's solid bodies by name, with each one's volume and bounding box.
Use it before any body tool (combine_bodies, split_body,
move_copy_body, delete_bodies, scale_body, save_body_as_part):
they take these names. A part gets several bodies from
create_extrusion with merge_result: false, a split or a copy.
Needs: an open part. Read-only. Returns: bodies, each with name,
volume_mm3 and bounding_box_mm (min, max, size), count and
total_volume_mm3.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_bodies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||