wait_for_element
Pause browser automation until a specified element reaches a chosen state—attached, detached, visible, or hidden—or times out, so scripts act only when the page is ready.
Instructions
Wait for element to appear.
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 |
|---|---|---|---|
| state | No | ||
| pageId | No | ||
| timeout | No | ||
| selector | Yes |