browser_wait_for_selector
Wait for a CSS selector to become visible, attached, hidden, or detached on a page, with a configurable timeout. Synchronize automation steps until elements are ready.
Instructions
Wait for an element to appear on 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 | State: 'attached', 'detached', 'visible', 'hidden' | visible |
| timeout | No | Timeout in milliseconds | |
| selector | Yes | CSS selector of the element |