pcb_export_render_png
Export PCB renders (board, stackup, net, annotated) from SVG to PNG, with configurable width, net/component highlighting, and annotation support.
Instructions
Export an SVG render (board, stackup, net, annotated) to a PNG image file. Requires cairosvg.
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": {
"session_id": "<session_id>",
"render_type": "<render_type>"
},
"name": "pcb_export_render_png"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net_name | No | Net name (required when render_type='net') | |
| width_px | No | Output image width in pixels (default 1600) | |
| session_id | Yes | Session ID from pcb_parse_layout | |
| annotations | No | Annotation list (for annotated render) | |
| output_path | No | Output PNG file path. If omitted, writes to temp file. | |
| render_type | Yes | Type of render to export | |
| highlight_nets | No | Nets to highlight (for board render) | |
| highlight_components | No | Components to highlight (for board render) |