list_component_sketches
Lists sketches of a component in the active assembly, then returns a chosen sketch's points and segments in assembly coordinates with IDs for mates and measurements.
Instructions
List the sketches of one component of the active assembly. Given a sketch name, list that sketch's points and segments (line / arc / circle with start, end, centre, radius) in ASSEMBLY coordinates. The ids are the point_id / segment_id that add_mate and measure_distance take. They follow SolidWorks' order for a finished sketch, which is NOT the ids list_sketch_entities gave while drawing. Each point has an 'of' field saying what it is: ['2:center'] is the centre of circle or arc 2, ['1:end', '3:start'] a corner shared by two segments, [] a point made with draw_point. Read-only.
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": {
"component": "<component>"
},
"name": "list_component_sketches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | mm, cm, m, inch or ft | |
| sketch | No | Sketch name. Leave out to get the list of sketch names. | |
| component | Yes | Component name from list_components, or a path into a sub-assembly |