wait
Pause browser automation until a specific CSS selector appears or disappears, or text appears on the page, supporting custom timeout.
Instructions
Wait for a selector to appear, disappear, or text to appear
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": "wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | CSS selector to wait for | |
| selectorGone | No | CSS selector to wait for absence of | |
| text | No | Page text to wait for (substring match in body innerText) | |
| timeoutMs | No | Timeout in milliseconds; defaults to the configured page-load timeout |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matched | Yes | Whether the condition was met before timeout | |
| elapsedMs | Yes | How long the wait took, in milliseconds |