page_wait_for
Pauses execution until either a specified duration passes or a given element selector appears on the page, preventing race conditions in automation.
Instructions
等待条件满足:数字=等待毫秒数,字符串=等待元素选择器出现
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": {
"page_id": "<page_id>",
"condition": "<condition>"
},
"name": "page_wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ||
| timeout | No | 最长等待时间(ms),默认 30000,超时抛错避免永久挂起 | |
| condition | Yes | 等待条件:数字为等待毫秒数;字符串为选择器,元素出现即结束等待 |