wait_for_element
Pause execution until a specified element reaches a given state like visible or hidden. Useful after navigation or dynamic content loading.
Instructions
Wait for an element to reach a state (attached / visible / hidden / detached). Useful after navigation or actions that load content.
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": "wait_for_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector to wait for. | |
| state | No | State to wait for. Default: visible. | |
| timeoutMs | No | Timeout in milliseconds. Default: 5000. | |
| browserId | No | Target tab (from list_tabs). Defaults to active. |