figma_rename_mode
Renames an existing mode in a Figma variable collection, letting you update mode labels such as Dark Theme or Tablet without recreating the variable structure.
Instructions
Rename an existing mode in a Figma variable collection. Requires the Desktop Bridge plugin to be running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modeId | Yes | The mode ID to rename (e.g., '123:0'). Get this from the collection's modes array in figma_get_variables. | |
| newName | Yes | The new name for the mode (e.g., 'Dark Theme', 'Tablet'). | |
| collectionId | Yes | The collection ID containing the mode (e.g., 'VariableCollectionId:123:456'). Get this from figma_get_variables. |