等待
web_waitWait for a page to reach the desired state—fully loaded, network idle, element visible/hidden, URL match, or fixed delay—so subsequent automation steps run after navigation or slow rendering.
Instructions
按条件等待页面达到预期状态:页面加载完成(load)、网络空闲(networkidle)、元素出现/消失(selector)、URL 匹配(url)、或固定时长(sleep)。适合在页面渲染较慢或导航后需要同步时使用。
权限说明:只读操作(等待本身不产生网络请求)。
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": {
"condition": "<condition>"
},
"name": "web_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ms | No | sleep 条件的时长毫秒,默认 1000 | |
| state | No | selector 条件的期望状态,默认 visible | |
| timeout | No | 等待超时毫秒 | |
| selector | No | selector 条件的目标元素 | |
| condition | Yes | 等待条件;selector 需要配合 selector/state,url 需要配合 url_pattern,sleep 需要配合 ms | |
| url_pattern | No | url 条件的匹配模式(glob 或字符串) |