create_variable
Creates a COLOR, FLOAT, STRING, or BOOLEAN variable in an existing collection with a value for each mode and returns its ID.
Instructions
Create a variable (COLOR, FLOAT, STRING or BOOLEAN) in an existing collection, with a value for each mode. Colors are #RRGGBB(AA) or {r,g,b,a} in 0-1. Returns the variable ID.
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": {
"collectionId": "<collectionId>",
"name": "<name>",
"type": "<type>",
"values": "<values>"
},
"name": "create_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Variable name (use / for groups) | |
| type | Yes | COLOR = color, FLOAT = number, STRING = text, BOOLEAN = boolean | |
| values | Yes | Value per mode, keyed by mode name or mode ID | |
| collectionId | Yes | ID of the collection |