browser_wait_for
Wait for an element to be present, visible, clickable, or absent in the DOM. Specify selector type and timeout to control browser automation flow.
Instructions
Wait for an element to satisfy a condition.
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": {
"session_id": "<session_id>",
"selector": "<selector>"
},
"name": "browser_wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The session ID | |
| selector | Yes | Element selector | |
| by | No | Selector type (css, xpath, id, name, class, tag) | css |
| timeout | No | Maximum seconds to wait | |
| condition | No | Condition to wait for: - "present": Element exists in DOM - "visible": Element is visible - "clickable": Element is clickable - "gone": Element no longer exists | present |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |