pcb_export_layers
Export each PCB layer as a separate SVG file with board-area fit, returning file paths for downstream processing.
Instructions
Export one SVG per PCB layer (e.g. F.Cu,B.Cu,Edge.Cuts) and return the generated file paths. Defaults to board-area fit for downstream cropping.
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": {
"source": "<source>",
"layers": "<layers>"
},
"name": "pcb_export_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | Page sizing: board (board area only), page (framed page), or current | board |
| layers | Yes | Untranslated layer names, e.g. ['F.Cu','B.Cu','Edge.Cuts'] | |
| source | Yes | Board name from config OR path to .kicad_pcb (or sibling .kicad_sch) | |
| output_dir | No | Directory to write SVGs into (default: a per-run temp dir) | |
| black_and_white | No | Plot black and white only |