ui.wait_for
Wait for a UI element to appear or disappear to handle loading, popups, or page transitions. Returns ok=false if the timeout expires.
Instructions
轮询等待选择器出现/消失(等弹窗、加载完成、页面跳转),超时返回 ok=false
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": {
"selector": "<selector>"
},
"name": "ui.wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pkg | No | 包名(id 短名补全用) | |
| gone | No | true=等待其消失 | |
| timeout | No | 最长等待秒数 | |
| selector | Yes | GKD 选择器 |