figma_add_mode
Add a new mode to an existing Figma variable collection, enabling variables to hold different values for contexts such as Light/Dark themes or device sizes.
Instructions
Add a new mode to an existing Figma variable collection. Modes allow variables to have different values for different contexts (e.g., Light/Dark themes, device sizes). Requires the Desktop Bridge plugin to be running.
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": {
"collectionId": "<collectionId>",
"modeName": "<modeName>"
},
"name": "figma_add_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modeName | Yes | The name for the new mode (e.g., 'Dark', 'Mobile', 'High Contrast'). | |
| collectionId | Yes | The collection ID to add the mode to (e.g., 'VariableCollectionId:123:456'). Get this from figma_get_variables. |