create_variable_collection
Create a variable collection with specified mode names in a Figma file; the first mode renames the default, supporting theme and state variables.
Instructions
Create a variable collection with the given mode names (first mode renames the default).
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": {
"name": "<name>"
},
"name": "create_variable_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| name | Yes | ||
| modes | No | e.g. ['Light','Dark'] |