Enable mouse and keyboard input in the viewer. Default: false.
Show navigation toolbar in the viewer. Default: true.
Tab-following mode: last_used (follows the most recently used tab) or automation (follows the automation driver). Default: last_used.
The token is valid for 24 hours. When interactive is enabled, the viewer captures mouse and keyboard events and forwards them to the browser session via WebSocket.
Examples
const live = await session.live({
interactive: true,
showControls: true,
viewerMode: 'automation',
});
console.log(live.iframeUrl); // embeddable URL
console.log(live.token); // JWT token
console.log(live.expiresAt); // token expiry
Response
Signed JWT for authenticated live viewing.
Embeddable URL for the live viewer.
Token expiration time (ISO datetime).
Token TTL in seconds (86400).
{
"token": "eyJhbGciOiJIUzI1NiIs...",
"iframeUrl": "/embed/live/sess_abc123?token=eyJhbGci...",
"expiresAt": "2025-01-16T10:00:00Z",
"expiresInSeconds": 86400
}