set_variable_value
Assign a literal value or alias to a Figma variable for a chosen mode, enabling design token updates and variable-to-variable links.
Instructions
Set the value of a variable for a mode. Value may be a literal or an alias to another variable ({aliasOf: variableId}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Value: {r,g,b,a?} (0-1), number, string, boolean, or {aliasOf: variableId} | |
| modeId | No | Optional mode ID (default: collection's default mode) | |
| variableId | Yes | ID of the variable |