Read a board's PCB copper
read_pcbUse when the user asks how a public board is routed on copper: vias, pads, tracks, layers, or a PCB net's geometry. Returns the board's latest pcb graph (viewBox millimetres). No focus returns a bounded overview (board size, layers, via/pad/track counts, a net index with via counts and routed length). net returns that net's pads and vias (diameter, drill, layer span) plus track count and length — not a dump of every segment. ref returns one footprint's pads. pcb selects one PCB inside a multi-board project ("default" or a slug from the overview). Prefer this over reading raw .kicad_pcb text for vias and copper connectivity; read_schematic is schematic wiring, not copper. Copper pours (zones) are not in this graph; query_design select ["kicad_pcb","zone"] for those. If copper is still computing, say so rather than inferring vias from the schematic.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net | No | Optional. One copper net name (e.g. GND): returns its pads and vias (including drill and layer span) plus track count and routed length. Prefer this for 'how many vias on net X' or 'is this net's routing reasonable'. | |
| pcb | No | Optional. One PCB inside this project: "default" or a slug from a previous overview (e.g. plate). This is NOT a BoardRepo board selector. Omit when the project has a single PCB. | |
| ref | No | Optional. One footprint reference (e.g. U1): returns its pads with nets, layers and positions. Provide at most one of ref or net. | |
| board | Yes | A board: handle/slug or a boardrepo.com URL. Use search_boards for public boards or list_my_boards for personal and authorised organisation boards. Do not invent references. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pcb | No | ||
| url | No | ||
| hint | No | ||
| note | No | ||
| found | Yes | ||
| message | No | ||
| matchStatus | No | ||
| copperStatus | No | ||
| requestedNet | No | ||
| requestedPcb | No | ||
| requestedRef | No | ||
| copperAvailable | No |