create_variables
Creates a Figma variable collection with variables for multiple modes, supporting COLOR, FLOAT, STRING, and BOOLEAN types.
Instructions
Create a Figma variable collection with variables. Supports COLOR, FLOAT, STRING, and BOOLEAN types with multiple modes (e.g., light/dark theme).
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>",
"variables": "<variables>"
},
"name": "create_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modes | No | Mode names (e.g., ['Light', 'Dark']). First mode replaces the default mode. | |
| variables | Yes | Array of variables to create | |
| collectionName | Yes | Name for the variable collection |