List library variables
figma_get_library_variablesRead variables from team libraries enabled in the Figma file: list collections, filter variables by name or type, and get keys to import before binding.
Instructions
Variables from the team libraries enabled in this file — the part of a library a plugin can list (its components and styles it cannot). Without collectionKey: the enabled libraries' variable collections { key, name, libraryName }. With one: that collection's variables { key, name, resolvedType }, filtered by query (name substring) and type, paginated. Import a variable by its key before binding it. Local variables: figma_get_variable_defs. UNSUPPORTED means the plugin lacks the teamlibrary permission or no library is enabled (Assets → Libraries). Reads only. Editors: Design; unverified: FigJam, Slides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| limit | No | Max variables. Default 200. | |
| query | No | Name substring, case-insensitive (collections: name or library name). | |
| cursor | No | The nextCursor of a truncated call, unchanged. | |
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. | |
| collectionKey | No | A collection key from a call without it. |