export_gerber
Export Gerber and drill files from a KiCad PCB with kicad-cli to prepare fabrication output and return the generated files.
Instructions
Export the Gerber and drill files of a board with kicad-cli, for fabrication.
The tool runs "kicad-cli pcb export gerbers", then "kicad-cli pcb export drill", and gives the files that kicad-cli wrote.
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": {
"pcb_path": "<pcb_path>"
},
"name": "export_gerber"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pcb_path | Yes | The .kicad_pcb file. | |
| output_dir | No | Optional folder of the files. Default: the folder "gerber" next to the board. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |