figma_get_library_variables
Lists variables from subscribed team libraries to inventory available design tokens and find the key needed to import a shared variable into the current file.
Instructions
List all variables from team libraries the current file has subscribed.
USE THIS when you want to see what design tokens (colors, spacing, typography sizes, booleans, strings) are available from shared libraries — without needing the library file's URL or REST API Enterprise plan.
HOW IT WORKS: Calls figma.teamLibrary.getAvailableLibraryVariableCollectionsAsync() + getVariablesInLibraryCollectionAsync() via the Desktop Bridge. Only libraries the user has explicitly enabled in the current file appear (Figma security model).
WORKFLOW:
Call this tool to inventory available library variables
Find the variable you want (use libraryName + collectionName + variable name to identify)
Pass its key to figma_import_library_variable to bring it into the current file
Once imported, the variable's id can be used with figma_set_fills / figma_update_variable / any standard variable-binding tool
Filters: libraryName/collectionName accept partial case-insensitive matches.
REQUIRES the Desktop Bridge plugin to be running in Figma Desktop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| libraryName | No | Optional: filter by library name (case-insensitive substring match). E.g., 'Northright' or 'Altitude'. | |
| resolvedType | No | Optional: filter by variable type. Useful when you only need color tokens or only spacing values. | |
| collectionName | No | Optional: filter by collection name within a library (case-insensitive substring match). E.g., 'Colors' or 'Spacing'. |