set_variable_value
Set variable values for any mode, supporting color hex strings, numbers, strings, and booleans.
Instructions
Set the value of a Variable for a specific mode. For COLOR type, pass hex string like '#FF0000'.
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>",
"modeId": "<modeId>"
},
"name": "set_variable_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | Value to set. For COLOR: hex string. For FLOAT: number. For STRING: string. For BOOLEAN: boolean. | |
| modeId | Yes | Mode ID to set the value for | |
| variableId | Yes | Variable ID |