Export Odb
export_odbExports PCB designs to ODB++ format for CAM, MES, and assembly. Creates a single archive with copper, drill, placement, components, nets, and outline from the saved board file.
Instructions
Export the PCB in ODB++ format via kicad-cli. Single job archive (copper, drill, placement, components, nets, outline) widely used by CAM/MES/assembly. Reads the last SAVED state of the .kicad_pcb.
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": {
"outputPath": "<outputPath>"
},
"name": "export_odb"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | Units (default mm) | |
| boardPath | No | Path to the .kicad_pcb (default: current board) | |
| defineVar | No | Project variable overrides as 'KEY=VALUE' strings | |
| precision | No | Coordinate precision (default 2) | |
| outputPath | Yes | Output file path (archive or directory per compression) | |
| compression | No | Output container/compression mode (default zip) | |
| drawingSheet | No | Path to a drawing sheet override |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |