wait_for_change
Wait for an element's text or attribute to change, enabling detection of SPA loading states and live DOM updates without page navigation.
Instructions
[Agent Browser] Wait for an element's content or attribute to change. Use for SPAs that update DOM without navigation (loading states, live data). If attribute is None, watches for text content changes.
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_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | ||
| attribute | No | ||
| timeout_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| hints | No | ||
| message | No | ||
| success | No | ||
| suggestions | No |