figma_update_variable
Updates a single Figma variable's value in a specified mode or its description, enabling targeted token edits without changing other variables.
Instructions
Update a single variable's value and/or its description. Pass modeId+value to change the value in a mode; pass description to set the 'How to use this variable' text shown in the Variables panel (and exported as DTCG $description). At least one of {modeId+value} or {description} is required. For many value updates at once, use figma_batch_update_variables (10-50x faster). Use figma_get_variables first for IDs. COLOR: hex '#FF0000', FLOAT: number, STRING: text, BOOLEAN: true/false. Requires Desktop Bridge plugin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | The new value (requires modeId). For COLOR: hex string like '#FF0000'. For FLOAT: number. For STRING: text. For BOOLEAN: true/false. | |
| modeId | No | The mode ID to update the value in (e.g., '1:0'). Required when updating a value. Get this from the variable's collection modes. | |
| variableId | Yes | The variable ID to update (e.g., 'VariableID:123:456'). Get this from figma_get_variables. | |
| description | No | Set the variable's description (the 'How to use this variable' field; exported as DTCG $description). Pass an empty string to clear it. |