figma_extract_tokens
Extract design tokens such as colors, fonts, spacing, radius, and shadows from a Figma file or node, with Tailwind class mapping, so you can sync design values into code.
Instructions
Extract design tokens (colors, fonts, spacing, radius, shadows) with Tailwind class mapping
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "figma_extract_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | No | Root node ID to extract tokens from | |
| figmaUrl | No | Figma design URL (e.g., 'https://www.figma.com/design/ABC123/File-Name?node-id=1817:2817'). Extracts file key and node ID automatically. Once set, persists for the session. | |
| tokenTypes | No | Which token types to extract |