browser_wait_for_selector
Wait for a CSS selector to reach a specified state—visible, hidden, attached, or detached—with a configurable timeout, enabling reliable synchronization before interacting with page elements.
Instructions
Wait for an element to reach a given state.
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 | Target state | visible |
| timeout | No | Timeout in milliseconds | |
| selector | Yes | CSS selector of the element |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |