ipc_select_items
Select items in the PCB editor of the running KiCad, by reference or by net.
Instructions
Select items in the PCB editor of the running KiCad, by reference or by net.
The selection is no change of the board: KiCad makes no undo step for it. The selection filter of the PCB editor does not apply: the API cannot read it.
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": {
"board_path": "<board_path>"
},
"name": "ipc_select_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "replace" (clear the selection, then select the items), "add", "remove" (remove the items from the selection), or "clear" (no references and no nets). | replace |
| nets | No | The net names, for example ["GND", "/SDA"]. They are case-sensitive. A net gives its tracks, arcs, vias and shapes: the item types of "Select All Tracks in Net" of KiCad. | |
| board_path | Yes | The path of the .kicad_pcb file that is open in the PCB editor. | |
| references | No | The references of footprints, for example ["R1", "U3"]. They are case-sensitive. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |