figma-library-variables
Discover and import design tokens from SUBSCRIBED Figma team libraries into the current file. Use when the user wants to reuse tokens that live in a shared library: triggers 'list library variables', 'what tokens are in our shared library', 'import a variable from our design system library', 'pull in the brand color token from the library'. Works on ANY plan via the Plugin API teamLibrary methods. For LOCAL variables use figma-export-tokens / figma-manage-variables.
How do I install this agent skill?
npx skills add https://github.com/southleft/figma-console-mcp-skills --skill figma-library-variablesIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides a set of tools for discovering and importing design variables from subscribed Figma team libraries using the official Figma Plugin API. It does not perform any network operations, access sensitive local files, or contain malicious instructions.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
figma-library-variables — discover & import team-library variables
Browse the variables published by libraries the current file subscribes to, then import the ones you need. Imported variables get a local id that behaves like any local variable (bind it, read it, reference it).
Skill boundaries
use_figmarules — load the officialfigma-useskill first; it is the full Figma Plugin API reference. Essentials these scripts rely on: plain JS with top-levelawait+return(no IIFE, nofigma.closePlugin();console.logis not returned), inputs inlined asconstat the top of each script, colors in 0–1 range, load fonts before any text op,await figma.getNodeByIdAsync(...), and atomic errors (a failed script applies nothing — read the error, fix, retry).- Local (non-library) variables →
figma-export-tokens,figma-manage-variables.
Workflow
- Discover. Run
scripts/list-library-variables.jsviause_figma(skillNames: "figma-library-variables"). Optionally set theLIBRARY_NAME/COLLECTION_NAME/TYPEfilters. It returns each subscribed collection and thekeyof every variable in it. - Import. Put the variable
key(s) intoscripts/import-library-variable.jsand run it. It returns the newlocalIdfor each. Re-importing is idempotent (same local id). - Use. Bind the imported variable to node properties or reference it from local semantic tokens
(see
figma-use/figma-manage-variablesfor binding).
Notes
- Only subscribed libraries appear. If a collection is missing, enable the library in the file's library settings first (a manual Figma step).
getVariablesInLibraryCollectionAsynctakes the collection key, not its id.- Library variables are read-only references to the source — edit values in the library file, not here.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/southleft/figma-console-mcp-skills/figma-library-variables">View figma-library-variables on skillZs</a>