export_bom
Export a bill of materials from a KiCad schematic as CSV using kicad-cli, then return the parsed rows for review or further processing.
Instructions
Export a bill of materials as CSV with kicad-cli and return the parsed rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Columns; default Reference, Value, Footprint, ${QUANTITY}, ${DNP}. | |
| group_by | No | Group rows by these fields; default Value and Footprint. Pass [] for no grouping. | |
| max_rows | No | ||
| output_path | No | CSV path; default <name>-bom.csv next to the schematic. | |
| schematic_path | Yes | A .kicad_sch file, absolute or relative to the workspace. Any sheet of the project works; the root sheet is used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| columns | Yes | ||
| command | Yes | ||
| csv_path | Yes | ||
| row_count | Yes | ||
| truncated | No |