export_bom
Export a LibrePCB project's bill of materials as CSV, generating one file per assembly variant; optionally target a specific board or set an output directory.
Instructions
Export the bill of materials as CSV (one file per assembly variant).
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": {
"project_path": "<project_path>"
},
"name": "export_bom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| board | No | Board for a board-specific BOM; default: generic BOM | |
| output_dir | No | Output directory inside a configured root; default: <project>/output/mcp | |
| project_path | Yes | Path to the project's *.lpp file or its directory |