create_variable_collection
Creates a local Figma variable collection with named modes and returns the collection and mode IDs.
Instructions
Create a local variable collection in Figma with its modes. Returns the collection ID and the mode IDs.
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>",
"modes": "<modes>"
},
"name": "create_variable_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the collection | |
| modes | Yes | Names of the modes, in order (the first one renames the default mode) |