figma_import_library_variable
Imports a single variable from a subscribed Figma team library into the current file, returning a local ID for binding to fills, strokes, or other node properties.
Instructions
Import a single variable from a subscribed team library into the current file.
After import, the variable becomes locally addressable by its returned 'id' and can be passed to any tool that binds variables to nodes (fills, strokes, paddings, etc.). The import is idempotent — calling it twice returns the same local id.
WORKFLOW:
Run figma_get_library_variables to find the variable key
Call this tool with that key
Use the returned 'id' with figma_set_fills (boundVariables), figma_update_variable, or other binding tools
REQUIRES the Desktop Bridge plugin and that the source library is subscribed by the current file (otherwise importVariableByKeyAsync rejects).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variableKey | Yes | The variable key from figma_get_library_variables (collections[].variables[].key). Distinct from the variable's local id. |