browser_wait
Pause automation until an element or text is visible on the page, using CSS or text selectors to confirm a match can be seen before the next action.
Instructions
Wait for an element or a text to be visible on the page. Supports CSS and text-based selectors. found is true only for a match that can be seen: one that is display:none, visibility:hidden, opacity 0 (itself or a parent), smaller than 2 px, inside a closed box, or moved outside the page does not count, and the page is not scrolled. If only such matches exist when the time is up, the answer is found:false with on_page_but_hidden:true. Pass state: "attached" to wait only for the match to exist; visible then says whether it can be seen - for example a hidden file input (input[type=file]) before browser_upload_file, an , or a hidden token field. A fixed element counts only inside the window. With a Chrome extension older than 1.33 (the Chrome Web Store may still serve one) visibility is not checked: a default wait answers found:true with visible:"unknown" and visibility_checked:false, so check the element before you act on it; with state "attached" the answer has no visible field.
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": {
"selector": "<selector>"
},
"name": "browser_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | visible (default): wait until a match can be seen (with an extension older than 1.33: until it exists, see visible in the answer). attached: wait until a match exists on the page, seen or not. | |
| timeout | No | Max wait time in ms (default: 10000, at most 60000) | |
| selector | Yes | CSS selector or text selector (e.g. "text=Success", "button:text(Next)") to wait for | |
| partition | No | Run this call in a partition from browser_partition (an id like "p1"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead. |