On this page

Browser concepts

Start with the quickstart, then use this model to choose the right operation. Rove's central workflow is a supervised browser shared by your agent and an operator.

Sessions and profiles

A session is a running browser context with a session ID. Create it, perform actions, and close it in a finally block or Python session context. Closing releases the running browser; it does not delete the API key's saved browser profile. Sessions can also expire or end after worker failure; read their status before attempting recovery.

A profile keeps sign-ins and cookies for an API key across supervised sessions. Give each agent its own key. list_history, clear_history and delete_profile manage persisted state; clearing history is different from deleting the profile. Keep one egress mode per profile because changing the route can invalidate a site's sign-in. See supervised sessions.

Agent and operator control

  1. The agent creates a supervised session and gets a one-time viewer grant.
  2. The operator opens the viewer and can take exclusive control. Agent mutations receive 409 while the person drives.
  3. The operator returns control. The agent obtains a fresh get_a11y_tree or screenshot observation before clicking or typing again.
  4. Either side stops the session. An ended session cannot resume; create another only after deciding what task state to restore.

request_human parks the task for operator input. Treat the returned viewer link as a secret and honor the human-wait expiry. See the login recipe and control recovery.

Observation freshness

An accessibility tree gives roles, names and element references. References belong to the page and its latest observation; do not carry them across navigation, popup changes or human handback. Re-read after each meaningful change. Screenshots provide visual context when text is insufficient. See reading pages.

Pages and frames

A session can contain several pages. A click opening a popup makes the popup current. Use list_pages to inspect IDs, switch_page to change the default page and close_page to close one. An action's page_id targets a page without changing the default.

Frames are documents nested inside a page. frame selects an iframe, or a chain for nested iframes; selectors and labels then resolve inside it. Frame references such as f1e3 come from a fresh tree. See actions: pages and frames.

Capability map

GoalUseContinue with
Work behind a sign-in with human oversightSupervised session, viewer grant, request_humanSupervised sessions
Find a button or read a signed-in pageget_a11y_tree, get_text, screenshotReading pages
Fill a form or navigate a popupBrowser actions in the same sessionActions
Read public labeled data without persistent stateOne-shot extract; no supervised viewerExtraction recipe
Diagnose a failureProblem type, session status, fresh observationTroubleshooting
Estimate cost or recover a depleted balanceCatalogue, balance, billing purchase lifecycleBilling API

Help improve this page: Report a correction.

Blocked on a task? Contact support. Include the error type and session ID; omit keys and viewer credentials.

Rove — the supervised browser for agents