export_pcb_3d
Export a KiCad PCB as a STEP 3D model for mechanical CAD, with footprint models and warnings for missing or unreadable 3D files.
Instructions
Export a board as a STEP 3D model with kicad-cli, for mechanical CAD.
The model has the board and the 3D models of its footprints. kicad-cli does not add a 3D model that it cannot find or read: the tool then gives a warning with the footprints and the reason. Tell the user about each such footprint.
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_pcb_3d"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pcb_path | Yes | The .kicad_pcb file. | |
| board_only | No | True gives only the board, with no models of the footprints. | |
| output_path | No | Optional .step or .stp file. Default: <board>.step next to the board. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |