Read PCB
pcb_readRead PCB data from a KiCad file or live editor to inspect summaries, footprints, nets, pads, tracks, zones, and drawings, filter by reference or net, and optionally run DRC.
Instructions
Read the PCB. With no arguments: a digest (footprint, track, via and unrouted counts, outline size, layers). what: any of summary | footprints (ref, value, position mm, rotation, side) | nets | pads | tracks (every segment with its uuid; combine with net) | widths (per-net copper summary) | zones | drawings. refs: only these footprints. net: only that net. drc=true also runs KiCad DRC. source='live' reads the board open in the running KiCad editor. Example: pcb_read(what=["footprints"], refs=["U1"]) · pcb_read(what=["nets"], net="GND")
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": "pcb_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| drc | No | Also run kicad-cli DRC (slower; default false) | |
| net | No | Filter nets/pads/tracks to this net name | |
| refs | No | ||
| what | No | ||
| limit | No | Max footprints/tracks listed (default 200) | |
| source | No | file (default) or live IPC board | |
| project | No | project path (default: active) |