export_gerbers
Generate Gerber files for PCB manufacturing. Choose specific layers for single-file output or include all layers with drill files.
Instructions
Export Gerber files for manufacturing.
When layers contains exactly one layer, exports a single Gerber file: path
names it, and size_bytes and layer are filled. Otherwise exports all layers
(or the specified subset) plus optional drill files, and path names the
output directory. files and count are filled either way.
Args:
pcb_path: Path to .kicad_pcb file. Optional; omit to use the configured default.
output_dir: Output directory for gerber files. Optional; omit to use the configured default.
include_drill: Also export drill files (default: True, ignored in single-layer mode)
layers: Optional list of layer names. Single layer = single file output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layers | No | ||
| pcb_path | No | ||
| output_dir | No | ||
| include_drill | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| path | Yes | ||
| count | Yes | ||
| files | Yes | ||
| layer | No | ||
| format | Yes | ||
| size_bytes | No | ||
| drill_count | No | ||
| drill_files | No |