get_selection
Reads the live selection in KiCad's PCB editor as stable file-level references for kct commands, including footprints, pads, nets, tracks, vias, zones, graphics, and bounding boxes.
Instructions
Read what is selected in KiCad's PCB editor, live, as stable file-level references that kct commands accept: footprints (reference designators), pads ('REF.PAD'), nets (of the selected copper, pads and zones), nets_of_footprints (nets reached through selected footprints' pads), other (tracks, vias, zones and graphics, with a session-scoped id and no_file_reference: true), undescribed (selected items this client cannot decode, counted, never dropped), and bbox (mm, file frame) with the board-frame offset. Optional kinds filter (e.g. ['footprint', 'pad']); include_geometry adds per-item positions and boxes. An empty selection is an ordinary empty result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kinds | No | ||
| include_geometry | No |