wait_for_selector
Waits for a CSS selector to appear on the page, polling every 500ms until it is found or the timeout is reached.
Instructions
Wait for a CSS selector to appear on the page. Polls every 500ms up to the timeout.
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_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector to wait for (e.g. '#login-form', '.loaded') | |
| timeoutMs | No | Maximum wait time in ms (default: 5000, max: 15000) |