Wait until the page has finished loading (event-driven)
wait_page_settledWaits until the on-screen page finishes loading by using the browser's own accessibility events instead of a fixed sleep, then confirms the document is idle and unchanged for a quiet interval.
Instructions
Wait until the page on screen has finished loading: its document is no longer busy and the browser has announced no structural change for quiet_ms. Event-driven (the browser's own accessibility notifications), not a fixed sleep. Returns {settled, reason, ms, ready_ms, events}. Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wait_page_settled"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_ms | No | ||
| not_doc | No | The `doc` a previous wait_page_settled returned: after a navigation, only a DIFFERENT document counts (a view-source: page keeps its page's URI and has no title). | |
| quiet_ms | No | ||
| url_contains | No | ||
| title_contains | No | Only a document whose title contains this counts. | |
| window_address | No |