extract_design_tokens
Extract colors, spacing, typography, and radii from any Figma node tree into a reusable TypeScript tokens file for consistent design systems.
Instructions
Extract all design tokens (colors, spacing, typography, radii) from a Figma node tree into a reusable TypeScript tokens file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"figmaToken": "<figmaToken>",
"fileKey": "<fileKey>",
"nodeId": "<nodeId>"
},
"name": "extract_design_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Root Figma node ID to extract tokens from | |
| fileKey | Yes | Figma file key from the URL | |
| figmaToken | Yes | Figma Personal Access Token |