Make the given tab the active one for subsequent session-scoped operations.
/browser/sessions/{id}/pages/{pageId}/activate endpoint switches the session’s active tab to the one identified by pageId. The tab is brought to the foreground and becomes the target for all subsequent session-scoped operations (mouse, keyboard, navigate, content, screenshot, PDF).
This avoids having to pass pageId on every request — set the active tab once, then use the compact session-scoped endpoints.
POST /browser/sessions.POST /pages or GET /pages.true when the tab was activated.| Status | Description |
|---|---|
401 | Unauthorized — invalid or missing API key. |
404 | Session not found, not owned by the caller, or no tab with the given pageId exists in the session. |
408 | Navigation timeout — rarely occurs, set if the underlying bring-to-front command stalls. |
503 | The browser session is temporarily unreachable. |
pageId plumbing.