set_variable
Set or delete a global show variable with numeric or text values. Optionally prompt the operator for input to adjust on the fly.
Instructions
Set a global show variable (SetVar).
Args:
var_name: Variable name (should start with $, e.g. "$song")
value: Numeric, text, or None to delete the variable
input_dialog: If True (string values only), prompt the operator with an
input dialog instead of setting a fixed value
Returns:
str: Operation result message
Examples:
- Set $count to 5
- Set $song to "Opening"
- Delete $count (value=None)
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": {
"var_name": "<var_name>"
},
"name": "set_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| var_name | Yes | ||
| value | No | ||
| input_dialog | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |