wait_for
Waits for a specified element to appear in the DOM after dynamic content loads, ensuring subsequent browser actions target elements that are actually available.
Instructions
[Agent Browser] Wait for an element to appear in the DOM. Use after actions that load dynamic content. Most interaction tools auto-wait, so only use this for elements that appear asynchronously after page interactions.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | ||
| timeout_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| hints | No | ||
| message | No | ||
| success | No | ||
| suggestions | No |