camofox_wait_for_selector
Wait for a CSS selector to appear in the live DOM to handle SPA hydration and async content. Use when snapshot refs are incomplete or stale.
Instructions
Wait for a CSS selector to appear in the live DOM. Use for SPA hydration and async content when snapshot refs are incomplete or stale. Once found, prefer snapshot refs for interaction when available. Requires CAMOFOX_API_KEY only when browser-server authentication is enabled.
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": {
"tabId": "<tabId>",
"selector": "<selector>"
},
"name": "camofox_wait_for_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID from create_tab | |
| timeout | No | Timeout in ms (default: 10000) | |
| selector | Yes | CSS selector to wait for |