browser_wait
Pauses browser automation until a specified element is visible or page text contains a target string, resuming when the condition is met or the timeout expires.
Instructions
Wait until an element is visible, or until page text contains a string.
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": {
"tabId": "<tabId>"
},
"name": "browser_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from the latest snapshot in this document. | |
| text | No | ||
| tabId | Yes | Tab id from browser_tabs. | |
| browser | No | Browser id from browser_list, or chrome/firefox when only one instance matches. | |
| frameId | No | Frame id from browser_frames; defaults to top frame. | |
| revision | No | Reject if the DOM revision differs from the snapshot. | |
| selector | No | CSS selector. Must identify exactly one element. | |
| timeoutMs | No | ||
| documentId | No | Reject the action if this snapshot document has changed. |