Wait for condition
wait_forWaits for a selector, text, URL, JavaScript predicate, or page load state before continuing, so browser automations can handle async updates and navigation reliably.
Instructions
Wait for a selector/text state, a URL, a JavaScript predicate, or a page load state. Use after actions that trigger async updates or navigation.
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_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| js | No | JavaScript expression/predicate. | |
| text | No | ||
| exact | No | ||
| state | No | visible | |
| tabId | No | ||
| frameId | No | ||
| timeout | No | ||
| trusted | No | ||
| interval | No | ||
| selector | No | ||
| loadState | No | ||
| urlMatches | No | JavaScript regular expression source. | |
| urlIncludes | No |