figma_setup_design_tokens
Create a Figma design token collection with modes and variables in one operation, resolving CSS custom properties or DTCG alias references during import.
Instructions
Create a complete design token structure in one operation: collection, modes, and all variables. Ideal for importing CSS custom properties or design tokens into Figma. Values may be literals OR DTCG-style brace references ('{color.blue.600}', or set-qualified '{primitives.color.blue.600}') that resolve to variable ALIASES — first against variables created in this same call, then against existing local variables. Unresolvable references skip that value with a per-item warning (the rest of the batch still applies), so semantic collections referencing primitives no longer need raw figma_execute. Requires Desktop Bridge plugin.
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": {
"collectionName": "<collectionName>",
"modes": "<modes>",
"tokens": "<tokens>"
},
"name": "figma_setup_design_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modes | Yes | Mode names (first becomes default). Example: ['Light', 'Dark'] | |
| tokens | Yes | Token definitions (1-100) | |
| collectionName | Yes | Name for the token collection (e.g., 'Brand Tokens') |