Get Board 2d View
get_board_2d_viewRender a 2D view of a PCB into PNG, JPG, or SVG, with optional layer filtering and inline or file delivery.
Instructions
Render a 2D image of the PCB using kicad-cli. Returns PNG, JPG, or SVG. Use layers to filter — e.g. ["F.Cu","B.Cu","Edge.Cuts"] for copper + outline only. Use responseMode to choose delivery: "inline" (default) — PNG/JPG rendered as an image visible to Claude; SVG returned as text. "file" — image written next to the .kicad_pcb as _2d_view.; filePath is returned. Use file mode for large boards to avoid MCP message-size limits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Output image width in pixels (default: 1600) | |
| format | No | Output format (default: png) | |
| height | No | Output image height in pixels (default: 1200) | |
| layers | No | Layer names to include, e.g. ["F.Cu","B.Cu","Edge.Cuts"]. Omit for all layers. | |
| pcbPath | No | Absolute path to the .kicad_pcb file. Falls back to the currently loaded board if omitted. | |
| responseMode | No | "inline" (default): image returned directly; "file": written to disk, filePath returned |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |