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.
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_get_library_variables"
}
}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. |