Wait for a game condition
live_waitPoll a running game's expression until it becomes truthy, so sequences like menu open, battle over, or message finished are followed instead of guessed.
Instructions
Poll an expression in the running game until it is truthy, so a sequence (menu open, battle over, message finished) can be followed instead of guessed at.
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": {
"expression": "<expression>"
},
"name": "live_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pollMs | No | ||
| timeoutMs | No | ||
| expression | Yes | Polled about every 250ms until truthy or timeout |