figma_enumerate_library_components
Enumerate all published components and component sets in a Figma library file, returning names, keys, kinds, props, and parent information.
Instructions
LIVE enumerate every published COMPONENT and COMPONENT_SET in a library Figma file. REQUIRES the library file to be open in FMCP plugin (see figma_list_connected_files). Returns items: [{name, key, kind, props, parent}]. Kind is authoritative — use importComponentSetByKeyAsync for COMPONENT_SET, importComponentByKeyAsync for COMPONENT. v3.2+ RECOMMENDED path — zero local cache dependency, always fresh as Figma updates. For multi-library DS (e.g. main DS + mobile DS + icons), call once per library file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| libraryName | No | Match a connected file by name substring (case-insensitive, e.g. 'Mobil' matches '❖ My-DS Mobil'). | |
| libraryFileKey | No | Direct file key (e.g. from figma_list_connected_files). Takes precedence over libraryName. |