figma_get_library_variables
Retrieve variables from Figma team library collections by name, collection, or library, returning import keys for binding variables in your design file.
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. PRE-FLIGHT (v1.9.8+ MUTLAK): BEFORE calling, read ~/.claude/data/fcm-ds//tokens.md cache first. If cache exists and <7 days old (per _meta.md), use cache directly — only call this tool on cache miss or stale.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (default 100) | |
| query | No | Filter variables by name (case-insensitive contains) | |
| fileKey | No | Target a specific connected file. | |
| figmaUrl | No | Figma file URL for routing. | |
| libraryName | No | Filter by library name (exact match, e.g. '❖ My-DS') | |
| collectionName | No | Filter by collection name (exact match) |