Endpoint
Authentication
RequiresuserId in the request body to identify the session owner.
Parameters
The tab ID returned from
POST /tabsThe user ID that owns this tab’s session
Maximum time to wait in milliseconds (default: 10000ms / 10 seconds)
Whether to wait for network idle (no requests for 500ms). Set to
false for faster returns on pages with continuous network activity.Response
true if the operation completedtrue if the page became ready within the timeout, false if timeout was reachedExample
When to use
After navigation
Wait for a page to fully load after calling/navigate:
After dynamic actions
Wait for content to load after clicking a button that triggers an AJAX request:Skip network wait for streaming content
Some pages have continuous network activity (streaming, polling, live updates). SetwaitForNetwork: false to return as soon as DOM is ready:
Wait behavior
The endpoint waits for:- DOM ready - Document has finished parsing
- Network idle (if
waitForNetwork: true) - No network requests for 500ms - Hydration - JavaScript frameworks have initialized (best-effort detection)
ready: false is returned but the operation still succeeds (ok: true).
Error responses
| Status | Error | Cause |
|---|---|---|
| 400 | userId is required | Missing userId in request body |
| 404 | Tab not found | Tab ID doesn’t exist or doesn’t belong to this user |
| 500 | Internal server error | Page closed or browser crash |
Notes
/navigatealready waits fordomcontentloadedby default, so you usually don’t need/waitimmediately after navigation- Use
/waitwhen you need stricter ready guarantees (network idle + hydration) /waitis non-blocking - if the page never becomes idle, it will returnready: falseafter timeout- Consider using a longer timeout (20-30s) for slow pages or poor network conditions
Related endpoints
- Navigate - Navigate to a URL (includes built-in DOM wait)
- Get snapshot - Get page content (auto-refreshes refs if stale)