figma_export_tokens
Export Figma variables to design token files in your codebase. Canonical DTCG JSON (legacy hex dialect by default, or DTCG 2025.10 object colors/dimensions via dtcgDialect: "2025") plus CSS, Tailwind v4/v3, SCSS, TS, JSON, Style Dictionary, and Tokens Studio formats. Diff-aware merge against existin
How to use it
figma_export_tokens is exposed by the Figma Console MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the figma_export_tokens tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Figma Console MCP
claude mcp add figma-console -s user -e FIGMA_ACCESS_TOKEN=figd_YOUR_TOKEN_HERE -e ENABLE_MCP_APPS=true -- npx -y figma-console-mcp@latestOther tools in Figma Console MCP (39)
Retrofit an existing frame as a slot via a manual SLOT property binding, with description and preferredValues
Populate an instance's slot by cloning an existing node or creating new content (setProperties rejects slot values by design — this is the population path)
Organize variants into professional component sets
Scored health audit for any MCP client — six-category report (naming, tokens, metadata, accessibility, consistency, coverage) with per-finding remediation ("can this MCP fix it?"), chunked per-category drill-down, live-first data with disclosed source, 5-minute cache
Compare Figma component specs against code implementation, producing a scored diff report with actionable fix items
Clear log buffer
Create a component set with variants in one declarative call
Add a slot to a component via the GA createSlot() API — the linked SLOT property is created automatically; works on standalone components and variants inside a component set
Create COLOR, FLOAT, STRING, or BOOLEAN variables
Create new variable collections with modes
Designer-readable health check + setup guidance
Power tool: Run any Figma Plugin API code to create designs
Local Mode only. Run the same script in several Desktop Bridge-connected files at once, concurrently, returning a per-file result map — for cross-file consistency checks and fixes across a multi-file design system, replacing "open file, run plugin, repeat per file"
Generate platform-agnostic markdown documentation by merging Figma design data with code-side info
Get component data (metadata or reconstruction spec)
Component + image
Just the image
Retrieve console logs
Full design system in one call — tokens, components, styles, visual specs
Full file structure
Optimized file data
Resolve any component key to full properties + variants + visual specs — without needing the source library file's URL. Works for both COMPONENTSET and standalone COMPONENT keys. Adaptive compression at >500KB.
Discover all components in a library file (requires library file URL/key)
List every variable from team libraries the current file has subscribed. Works on every Figma plan — uses the Plugin API path, not the Enterprise-only REST endpoint. Filter by libraryName, collectionName, or resolvedType.
List slots on a component, component set (aggregated across variants), or instance — ids, names, property keys, dimensions, and current children
Check WebSocket bridge connection and file context
Color, text, effect styles
Extract design tokens/variables
Import a library variable into the current file. Returns a local id ready to pass to figmasetfills / figmaupdatevariable / any variable-binding tool.
Push code-side token edits back to Figma with a full apply phase. Diffs against current Figma state, then applies value updates, creates missing collections/variables, applies renames, writes real alias (VARIABLEALIAS) references, and — only under strategy: "replace" — deletes Figma-only variables.
Switch the active file target among connected plugins (Local), or navigate the cloud headless browser (Remote/Cloud)
Generate a pairing code to connect a Desktop Bridge plugin via the cloud relay
Force reconnect to the Desktop Bridge plugin
Reload current page
Clear a slot's content on an instance
Document components with rich descriptions
Capture UI screenshots
Update variable values in specific modes
Real-time log streaming