figma_enumerate_library_components
Enumerate all published components and component sets in a Figma library, returning keys, kinds, and metadata for direct import or analysis.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "figma_enumerate_library_components"
}
}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. |