wait_selector
Waits until a browser element reaches a specified state (visible, hidden, attached, or detached) before continuing, using a selector, text, role, or CSS target with an optional timeout.
Instructions
Wait until an element reaches a state. Takes the same targets as click.
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_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lease | No | Optional lease token to present if the target session is leased (0.7.0). Threaded per-call; never read from the server's env. | |
| state | No | visible|hidden|attached|detached | |
| session | No | Optional session name to target (omit for the shared 'default'). On a daemon shared with other agents, pass a UNIQUE name for stateful multi-step work (go→click→fill) so you don't collide on 'default'. | |
| selector | Yes | @eN ref, visible text, @text:/@label:/@role:, or CSS. | |
| timeout_ms | No | Timeout in ms. |