connect
Start or restart a browser session for other tools. Launches a local Chrome or attaches to an existing one, optionally navigating to a URL.
Instructions
ALWAYS the first call: start (or restart) the browser session — launch a local Chrome by default, or attach to the user's real, logged-in browser via browserUrl (e.g. http://127.0.0.1:9222, for pages behind auth like wp-admin or a dashboard). Pass url to load a page immediately. Every other tool needs a live session; if a tool reports no session or a wedged browser, call connect again to reset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Navigate here right after connecting | |
| mode | No | Default 'launch'; 'attach' joins a running Chrome | |
| width | No | Viewport width, default 1280 | |
| height | No | Viewport height, default 800 | |
| headless | No | Launch mode only; default false (visible window) | |
| browserUrl | No | DevTools HTTP endpoint for attach mode, e.g. http://127.0.0.1:9222 |