browser_wait_for_selector
Pause browser automation until a CSS selector matches an element in the desired state (visible, hidden, attached, detached) or times out.
Instructions
Wait for an element to appear in the page
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_for_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Element state to wait for | |
| timeout | No | Maximum wait time in milliseconds | |
| selector | Yes | Selector to wait for | |
| sessionId | No | Browser session ID |