figma_setup_design_tokens
Creates a complete Figma variable collection with modes and tokens in one call, ideal for importing CSS custom properties or design tokens. Requires Canvas Bridge plugin.
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. Requires Canvas 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') |