wait_for_stable
Wait until the screen stops changing before interacting, replacing guessed settle delays with frame sampling that returns when the display is stable or the timeout is reached.
Instructions
Wait until the screen stops changing (page loaded, app drew, animation ended) — replaces guessing a settle_ms.
Samples the display every interval_ms (100–2000) and returns as soon as two consecutive
frames differ by at most threshold (fraction of pixels, default 0.2%), or after timeout_ms
(max 30000). Returns {"ok", "instance", "stable", "elapsed_ms", "frames", "change": last
changed fraction, "timed_out"}. "stable": false with "timed_out": true means the screen was
still changing (video, spinner, blinking cursor — raise the threshold to ~0.01 for those); it
is reported, not hidden. observe='screenshot'|'parse' returns the final state in the same
call. Fails (isError) if the instance is down.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wait_for_stable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| observe | No | none | |
| instance | No | ||
| threshold | No | ||
| timeout_ms | No | ||
| interval_ms | No |