watch_system_var
Poll a grandMA2 system variable via Telnet until it matches an expected value or times out. Returns match status, final value, elapsed time, and poll count.
Instructions
Poll a grandMA2 system variable until it matches an expected value or times out.
Uses ListVar telnet command. Requires an active telnet connection.
Args:
var_name: Variable name (with or without leading $, case-insensitive).
e.g. "FADERPAGE" or "$FADERPAGE"
expected_value: Value to wait for (string comparison).
timeout_seconds: Maximum wait time in seconds (capped at 30.0).
poll_interval: Seconds between polls (minimum 0.1).
Returns:
str: JSON with matched, final_value, elapsed_seconds, polls.
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>",
"expected_value": "<expected_value>"
},
"name": "watch_system_var"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| var_name | Yes | ||
| poll_interval | No | ||
| expected_value | Yes | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |