Sessions & Tabs
A session is a running Chrome instance tied to a profile. Within a session, you open tabs, navigate, interact with pages, and save state. Every pagerunner workflow starts with a session.
Session lifecycle
Session tools
| Tool | Description |
|---|---|
| open_session | Launch Chrome for a profile. Returns session_id. Options: stealth, anonymize. |
| attach_session | Attach to an already-running Chrome instance via --remote-debugging-port. |
| close_session | Kill a Chrome session. Always close when done. |
| list_sessions | List all active sessions. |
Tab tools
| Tool | Description |
|---|---|
| list_tabs | List open tabs in a session. |
| new_tab | Open a new tab, optionally navigate to a URL. Returns target_id. |
| close_tab | Close a specific tab (fails if it's the last tab). |
Navigation & content
| Tool | Description |
|---|---|
| navigate | Navigate a tab to a URL. |
| wait_for | Wait for a CSS selector, URL pattern, or fixed delay. |
| get_content | Get visible text content of a tab. |
| screenshot | Capture a tab as PNG (saved to temp file or inline base64). |
| evaluate | Run JavaScript in a tab and return the result. |
Interactions
| Tool | Description |
|---|---|
| click | Click an element by CSS selector. |
| type_text | Type text at the focused element or a given selector. |
| fill | Set input value with React/Vue/Angular synthetic events. |
| select | Choose a dropdown option by value. |
| scroll | Scroll the page by pixels or scroll an element into view. |
Tip: Use fill instead of type_text for form inputs in React, Vue, and Angular apps. It triggers the right synthetic events so the framework's state updates correctly.
Snapshots
Save authenticated browser state (cookies + localStorage) for an origin and restore it in any future session.
Snapshots are encrypted with AES-256-GCM and scoped to a profile. Use list_snapshots and delete_snapshot to manage them.
Session checkpoints
Checkpoints save the complete session state — all open tabs with their URLs and scroll positions.
Tab state
A lighter alternative to checkpoints — save just the open tab URLs and restore them later.
| Tool | Description |
|---|---|
| save_tab_state | Save all open tab URLs to the database. |
| restore_tab_state | Reopen tabs from the most recently saved tab state. |
Network & console
| Tool | Description |
|---|---|
| get_network_log | Query HTTP requests captured during a session. Useful for debugging and adapter generation. |
| get_console_log | Query captured browser console messages and JS exceptions for a tab. |
Next: Site Knowledge →