Get Selected Entities
get_selected_entitiesReads and describes the faces, edges, and vertices currently selected in the SolidWorks window, returning each entity's type, index, and geometry data so you can act on the user's actual selection.
Instructions
Describe the faces, edges and vertices selected in the SolidWorks window right now.
Use it when the user has clicked something and says "this face": it reads the
selection instead of guessing from a screenshot. To select edges yourself, use
select_face_edges. Needs: an open document. Read-only. Returns: entities
(each with index and type; a face adds bounding_box_mm, center_mm,
area_mm2 and normal when flat, an edge start_mm, end_mm and
straight-line length_mm, a vertex point_mm) and count.
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": "get_selected_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||