bom_read
Reads multiple KiCad netlist, schematic, or CSV BOM sources and consolidates them into grouped purchase lines with needed quantities, spares, and excluded parts.
Instructions
Read one or more BOM sources and consolidate them into purchase lines.
Args: files: [{"path": "~/Projects/x/board.net", "boards": 2, "label": "main"}]. Supported: KiCad netlist (.net), KiCad schematic (.kicad_sch, exported with kicad-cli), CSV BOM. "boards" multiplies quantities (default 1). spare_policy: "default" (extra for small/losable parts) or "none".
Lines are grouped by MPN, else TME symbol, else value+package. Each line has need (= parts on the boards), spares and suggested_qty. Test points, pads, mounting holes and DNP parts are listed under "excluded" - check them.
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": {
"files": "<files>"
},
"name": "bom_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| spare_policy | No | default |