Wait For Load
wait_for_loadPoll a tab until its document finishes loading and is ready after a navigation action; checks Arc's loading flag and document.readyState, with timeout and optional URL match.
Instructions
Poll until a tab has finished loading and the document is ready. Use after an action that triggers navigation. Checks Arc's own loading flag as well as document.readyState. Arc does not answer scripts while a tab loads, so the flag is what lets a slow server or a hung iframe show up as ready 'loading' on the timeout, instead of as a stalled call. If the load never ends, stop_loading ends it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | No | Arc tab id from list_tabs. Omit to use this agent's current tab. A tool that changes a tab will not fall back to the tab the user is looking at, so pass this or call open_url first. | |
| timeout_ms | No | Give up after this long. Capped at 30000ms so the call cannot outlive a client's request timeout. To wait longer, call this again. | |
| url_contains | No | Also wait until the url contains this substring |