wait_for_idle
Pause until the interface stops layout and painting after an action that starts background work, ensuring screenshots capture a settled UI. Fails safely after a timeout.
Instructions
Wait until the app's UI has been quiet (no layout/paint activity) for
quiet_ms ms, or until timeout seconds elapse. Call after a click or
action that triggers async work, before taking a screenshot.
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_idle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | App pid from launch_app. Omit to target the last launched app. Required only when several apps are running and you need a specific one. | |
| timeout | No | ||
| quiet_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |