open
Launch a browser session or attach to an existing CDP endpoint. Call this first to set up browser control for automation.
Instructions
Open a browser session, or attach to a browser already running with a CDP endpoint. Call this first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cdp | No | Attach to a browser already running with --remote-debugging-port instead of launching one, e.g. http://127.0.0.1:9222 | |
| url | No | URL to load once the browser is up. | |
| browser | No | chromium (default, the bundled build), chrome, firefox, webkit or msedge. Ignored when cdp is set. | |
| profile | No | Path to a persistent profile directory, to keep logins between runs. Ignored when cdp is set, since the running browser already has its own. | |
| session | No | Session name. Sessions have separate cookies and tabs. Defaults to "default". |