等待
browser_waitPause browser automation until specified text, selectors, or URL conditions appear or disappear, or a delay elapses, so scripts continue only when the page is ready.
Instructions
Wait for one of: text to appear (text), text to disappear (textGone), a selector to appear (selector) or disappear (selectorGone), the URL to contain a string (urlContains), or a fixed delay (time, ms). Multiple conditions wait for whichever happens first. Polls every 250ms. Prefer selector/urlContains on SPAs where text is reused; use text conditions for plain pages.
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": "browser_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Wait until this text appears on the page | |
| time | No | Wait a fixed number of milliseconds (max 30000) | |
| tabId | No | Tab id (default: active tab) | |
| selector | No | Wait until this CSS selector matches a visible element | |
| textGone | No | Wait until this text disappears from the page | |
| timeoutMs | No | Timeout in ms (default 10000, max 30000) | |
| urlContains | No | Wait until the page URL contains this string | |
| selectorGone | No | Wait until this CSS selector matches nothing |