figma_enumerate_published_components
Enumerate published components from a Figma library without the file being open. Filter by name substring to manage large libraries and prevent context overflow.
Instructions
List published COMPONENT + COMPONENT_SET of a library via the Figma REST API. Works WITHOUT the library file being open in plugin — use when the DS library is subscribed in the target file but library tabs aren't open. Requires figma_set_rest_token (one-time). v3.4+ RESPONSE SHAPE: items are compact by default ({name, key, kind}) — descriptions stripped to keep responses <10KB. Pass filter to search by name substring; large libraries (1000+ components) REQUIRE filter to avoid context overflow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max items returned. Default 200. Hard cap 500 to prevent context overflow. | |
| filter | No | Substring filter on component name (case-insensitive). Use for libraries with many components (1000+): e.g. filter='button'. | |
| libraryFileKey | Yes | Library file key. Extract from URL: figma.com/design/<FILE_KEY>/... | |
| includeDescription | No | Include component description text (can be very long — 10KB+ per item). Default false. |