wait_for_element
Waits for an element to appear in the page using a CSS selector. Optionally ensures the element is visible and sets a custom timeout in seconds.
Instructions
Wait for an element to appear on the page.
Args:
selector: CSS selector to wait for
timeout: Maximum time to wait in seconds (default: 30s for SPAs)
visible: If True, also checks element is visible (not hidden)
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 |
|---|---|---|---|
| timeout | No | ||
| visible | No | ||
| selector | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |