TabSailTabSail

Live view & handoff

Watch a session or let a person take control.

With an initialized client and an authorized session ID:

const viewer = await client.sessions.connections.create(sessionId, {
  type: "live",
  mode: "view",
});
// Deliver viewer.url only to the authorized person.

Python: connections.create(session_id, type="live", mode="view").

ParameterTypeRequiredDescription
typestringYeslive
modestringYesview or control
handoffIdstringFor controlActive handoff ID

Watch or control

ActionEffect
Open Live viewRead-only; automation continues
Take controlStart a handoff and revoke old automation control
Return to automationComplete the handoff; reconnect with a fresh CDP grant
Close the viewerLeave the browser running

The viewer shows the same tabs and website state. Watching does not extend lifetime or pause billing. Check expiresAt before opening a new connection.

Use the console's Take control and Return to automation, or the handoff API. For your own product, see application embedding.

On this page