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
- The agent creates a supervised session and gets a one-time viewer grant.
- The operator opens the viewer and can take exclusive control. Agent mutations receive 409 while the person drives.
- The operator returns control. The agent obtains a fresh
get_a11y_treeorscreenshotobservation before clicking or typing again. - 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
| Goal | Use | Continue with |
|---|---|---|
| Work behind a sign-in with human oversight | Supervised session, viewer grant, request_human | Supervised sessions |
| Find a button or read a signed-in page | get_a11y_tree, get_text, screenshot | Reading pages |
| Fill a form or navigate a popup | Browser actions in the same session | Actions |
| Read public labeled data without persistent state | One-shot extract; no supervised viewer | Extraction recipe |
| Diagnose a failure | Problem type, session status, fresh observation | Troubleshooting |
| Estimate cost or recover a depleted balance | Catalogue, balance, billing purchase lifecycle | Billing 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.