Analyze KiCad PCB Layout
analyze_kicad_pcbParse a KiCad .kicad_pcb layout to extract copper layers, board outline, SMD/THT pads, routed segments, arcs, and vias. Call first before DFM audits or cloud routing. Accepts raw pcb_text or local project_path; falls back to built-in 2l_rp2040 if omitted. Returns JSON layer, pad, and track counts. Example: project_path='board.kicad_pcb'.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_path": "board.kicad_pcb"
},
"name": "analyze_kicad_pcb"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pcb_text | No | Raw UTF-8 KiCad .kicad_pcb S-expression text for remote calls. | |
| project_path | No | Local filesystem path to a .kicad_pcb file (STDIO mode). |