export_3d
Convert KiCad PCB files to 3D models in STEP, STL, or GLB format, or render a PNG image of the PCB from any side.
Instructions
Export PCB 3D model or render 3D view to image.
`render` fills width, height and side; the mesh formats leave them unset.
Args:
format: Output format - "step", "stl", "glb", or "render" (PNG image)
pcb_path: Path to .kicad_pcb file. Optional; omit to use the configured default.
output_dir: Output directory. Optional; omit to use the configured default.
width: Image width in pixels (render only)
height: Image height in pixels (render only)
side: View side: top, bottom, left, right, front, back (render only)
quality: Render quality: basic, high (render only)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | top | |
| width | No | ||
| format | No | step | |
| height | No | ||
| quality | No | basic | |
| pcb_path | No | ||
| output_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| side | No | ||
| width | No | ||
| format | Yes | ||
| height | No | ||
| size_bytes | Yes |