List components
list_componentsLists components of a specified refdes prefix in a design, matches whole prefixes case-insensitively, groups identical parts, and optionally includes DNS parts.
Instructions
List components of a specific type in a design. The type is the refdes prefix, matched whole and case-insensitively: "u" gives U1 and U2 but NOT USB1, whose prefix is USB, and "tp" gives the test points. Asking for a partial prefix returns nothing rather than everything starting with it, so if a part you expected is missing, look for it under its own prefix. Identical components are grouped for compact output: parts share a group only when their MPN, description, comment and value all agree, so every field a group reports is true of every part in it. component_notes names the parts with no MPN. If no components match, the error lists the prefixes the same query would return, and names apart any prefix whose components are all DNS. A prefix whose components are all DNS returns an empty list with a note saying so; pass include_dns=true to list them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Component prefix: U, C, R, L, etc. | |
| design | Yes | Path to design file, as returned by list_designs | |
| include_dns | No | Include DNS (Do Not Stuff) components, flagged dns=true. Pass false to list only fitted parts | |
| design_variant | No | Design variant name from list_designs' design_variants. Required when the design records named variants, which are its only builds. <Default> (alias: default) is the one build of a design that records none |