figma_get_library_variables
Retrieve variables from Figma team libraries with import keys, enabling programmatic import into target files without connecting the source library.
Instructions
List variables from team library collections with import keys. Uses figma.teamLibrary API — works in the TARGET file, no need to connect the DS source file. Returns variable name, key (for importVariableByKeyAsync), resolvedType, collection, and library name. Use the returned keys with figma_bind_variable or figma.variables.importVariableByKeyAsync() in figma_execute.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| figmaUrl | No | Figma file URL for routing. | |
| fileKey | No | Target a specific connected file. | |
| query | No | Filter variables by name (case-insensitive contains) | |
| collectionName | No | Filter by collection name (exact match) | |
| libraryName | No | Filter by library name (exact match, e.g. '❖ SUI') | |
| limit | No | Max results (default 100) |