set_variable_value
Update an existing design variable's value for a specific mode, including color values in hex or RGBA format.
Instructions
Set the value of an existing variable for one mode. Colors are #RRGGBB(AA) or {r,g,b,a} in 0-1.
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": {
"variableId": "<variableId>",
"mode": "<mode>",
"value": "<value>"
},
"name": "set_variable_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Mode name or mode ID | |
| value | Yes | New value, matching the variable type | |
| variableId | Yes | ID of the variable |