manage_session
Manage browser sessions to maintain state across multiple web interactions. Create persistent sessions, clear existing ones, or list active sessions for handling login flows, forms, and multi-step processes.
Instructions
[SESSION MANAGEMENT] Unified tool for managing browser sessions. Supports three actions:
• CREATE: Start a persistent browser session that maintains state across calls • CLEAR: Remove a session from local tracking • LIST: Show all active sessions with age and usage info
USAGE EXAMPLES:
Create session: {action: "create", session_id: "my-session", initial_url: "https://example.com"}
Clear session: {action: "clear", session_id: "my-session"}
List sessions: {action: "list"}
Browser sessions maintain ALL state (cookies, localStorage, page) across multiple crawl calls. Essential for: forms, login flows, multi-step processes, maintaining state across operations.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | Action to perform: create, clear, or list | |
browser_type | No | Browser engine for the session (action="create"). | chromium |
initial_url | No | URL to load when creating session (action="create"). | |
session_id | No | Session identifier. Required for action="clear". Optional for create (auto-generated if omitted). |