extract_figma_tokens
Converts Figma variable definitions into standardized design token formats (W3C, Tokens Studio, Style Dictionary) with type inference and collection mapping for syncing to local token systems.
Instructions
Extract Figma variables and convert to standardized token formats (W3C, Tokens Studio, Style Dictionary). Takes Figma variable definitions from mcp_figma_get_variable_defs and transforms them into design tokens with proper type inference, collection mapping, and metadata. Useful for syncing Figma variables to your local token system.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | Output format for tokens | |
| collections | No | Filter to specific collection names (optional) | |
| includeMetadata | Yes | Include Figma-specific metadata (collection IDs, original names) | |
| figmaVariableDefs | Yes | Variable definitions from mcp_figma_get_variable_defs. Format: { 'variable/path': '#value', ... } |