open_browser
Opens a browser for automation, connecting to existing Chrome sessions or importing cookies from Firefox/Edge to preserve logins during automated tasks.
Instructions
Open a browser for automation.
browser — which browser to use: "chrome" (default), "firefox", or "edge".
── Chrome default behaviour ────────────────────────────────────────────────── For Chrome, CDP is tried automatically first. If the user has run 'chrome-agent' (which opens Chrome with --remote-debugging-port=9222), the agent connects to that existing window and opens a new tab — the user's real Chrome with all their logins, cookies, and extensions.
If Chrome is not running with the debug port, a helpful message is returned explaining how to start it.
── Firefox ─────────────────────────────────────────────────────────────────── Imports cookies from the user's Firefox profile (read-only) into a fresh Playwright session. Pass profile_path="auto" to detect the profile.
── Manual overrides ────────────────────────────────────────────────────────── cdp_url: connect to a specific debug URL (e.g. non-default port). profile_path: use an explicit profile directory (Chrome/Firefox/Edge). session_name: persist cookies across fresh Playwright sessions.
Args: browser: "chrome" (default), "firefox", or "edge". session_name: Cookie-persist name for standard/fresh mode. headless: Hide the window in standard/profile mode (default False). cdp_url: Override the CDP URL (default for Chrome: http://localhost:9222). profile_path: Launch with an existing browser profile ("auto" or full path).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| browser | No | ||
| cdp_url | No | ||
| headless | No | ||
| profile_path | No | ||
| session_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |