A browser session lifecycle an agent can reason about
Create, inspect, connect and close Cloudflare Browser Run sessions without confusing access links with persistent browser state.
Lupin field guides
Browser sessions, page actions and authenticated automation.
20 published articles
Create, inspect, connect and close Cloudflare Browser Run sessions without confusing access links with persistent browser state.
Use unique visible controls, inspect fresh page state and avoid turning selector recovery into repeated form submissions.
Choose temporary public research for evidence gathering and a managed session when a task needs page state or human interaction.
Make browser cleanup observable, distinguish a closed page from an ended session and reconcile uncertain provider outcomes.
Bound runtime, avoid duplicate allocation and close idle work while keeping search action costs separate from browser seconds.
Protect session-scoped CDP and live-view links, refresh them safely and understand their expiry and revocation limits.
Use tab identifiers, inspect popups and manage a small tab set without relying on tab order.
Plan for truncated text, capped controls and bounded image results instead of assuming every page fits in one tool response.
Pause automation, guide a private live-view sign-in and verify the returned account before continuing an authorized task.
Separate Lupin API permission, session access and website sign-in so agents do not assume one credential grants every kind of access.
Plan a provider cutover around supported contracts, fresh sessions, human reauthentication and verified cleanup.
Choose isolation boundaries, avoid conflicting controllers and respect workspace and provider capacity.
Keep search results, opened pages, retrieval times and agent conclusions distinct so research can be reviewed.
Collect allowed public records with explicit page identity, deduplication and a finite budget.
Classify validation, permission, provider and uncertain-action failures before deciding what can be retried.
Distinguish action deadlines, access-link startup expiry, inactivity and runtime leases when diagnosing browser failures.
Keep a website’s text separate from the user’s authority when researching or acting through a browser.
Interpret visible text, links and controls without mistaking a bounded page snapshot for the entire DOM or a structured application API.
Capture bounded JPEG screenshots, pair them with page observations and avoid treating a picture as proof of an action outcome.
Use bounded observations to distinguish a loaded document from an application that has finished presenting the needed information.