android_wait
Wait for a fixed delay or until specified text appears or disappears. Use during animations to let the UI settle before proceeding.
Instructions
Wait for a fixed delay, or until some text appears or disappears.
Use this instead of screenshotting into the middle of an animation.
Args: ms: Fixed sleep in milliseconds. until_text: Poll until this text/content-desc is present. until_gone: Poll until this text/content-desc is absent. timeout_ms: Give up after this long when polling. device: Device serial; defaults to the first physical device.
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": "android_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ms | No | ||
| device | No | ||
| timeout_ms | No | ||
| until_gone | No | ||
| until_text | No |