set_variable_mode
Assigns a collection mode (e.g., Dark) to selected Figma frames or sections so the correct variables apply.
Instructions
Set which mode of a collection a frame/section uses (e.g. Dark).
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": {
"nodeIds": "<nodeIds>",
"collection": "<collection>",
"mode": "<mode>"
},
"name": "set_variable_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| mode | Yes | ||
| nodeIds | Yes | ||
| collection | Yes |