setup_browser
Prepare Chrome or Edge for automated agent use by creating a dedicated profile and copying cookies, so the agent opens the browser with your sites logged in.
Instructions
Set up Chrome or Edge for agent use (macOS and Windows).
Run this ONCE (with your browser closed). It:
Creates a dedicated agent profile at ~/.webspeed/chrome-debug/ (macOS) or %LOCALAPPDATA%\WebSpeedAgent\chrome-debug\ (Windows) — a non-default user data directory, which is required by Chrome before it will open the remote debugging port.
Copies your existing Chrome cookies into that profile so you are already logged into all your sites when the agent opens the browser.
macOS: installs ~/bin/chrome-agent and adds a shell alias in ~/.zshrc. Windows: writes chrome-agent.bat to your Desktop.
After setup:
macOS: type 'chrome-agent' in Terminal to open Chrome
Windows: double-click chrome-agent.bat on your Desktop
Tell the agent: open_browser(browser="chrome", cdp_url="http://localhost:9222")
The agent opens a new tab in your real Chrome with all your logins active
Re-run setup_browser() any time you want to sync fresh cookies from your main Chrome profile into the agent profile (close Chrome first).
Args: browser: "chrome" (default) or "edge".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| browser | No | chrome |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |