diff --git a/agent-cli/commands/attach.mdx b/agent-cli/commands/attach.mdx index 71adae2949..9990a2b98e 100644 --- a/agent-cli/commands/attach.mdx +++ b/agent-cli/commands/attach.mdx @@ -13,7 +13,8 @@ Connect to an existing browser instead of launching a new one. | `attach --cdp=` | Connect to a running browser by channel name | | `attach --cdp=` | Connect via Chrome DevTools Protocol endpoint | | `attach --endpoint=` | Connect to a Playwright server endpoint | -| `attach --extension` | Connect via Playwright MCP Bridge extension | +| `attach --extension` | Connect via Playwright Extension (defaults to Chrome) | +| `attach --extension=` | Connect via Playwright Extension to a specific channel | ## Attach by channel name @@ -70,14 +71,22 @@ playwright-cli snapshot ## Browser extension -Connect to your existing browser tabs using the [Playwright MCP Bridge extension](https://github.com/microsoft/playwright-mcp/blob/main/packages/extension/README.md). This lets you reuse your logged-in sessions, cookies, and installed extensions. +Connect to your existing browser tabs using the [Playwright Extension](https://chromewebstore.google.com/detail/playwright-mcp-bridge/mmlmfjhmonkocbjadbfplnigmagldckm). This lets you reuse your logged-in sessions, cookies, and installed extensions. -Playwright MCP Bridge extension in Chrome Web Store +Playwright Extension in Chrome Web Store ```bash +# Attach to Chrome (default) playwright-cli attach --extension + +# Attach to a specific channel +playwright-cli attach --extension=chrome-canary +playwright-cli attach --extension=msedge +playwright-cli attach --extension=msedge-dev ``` +If no channel is specified, the extension attaches to Chrome by default. + ### When to use extension mode - **SSO / 2FA** — skip complex login flows by reusing your authenticated session diff --git a/mcp/configuration/browser-extension.mdx b/mcp/configuration/browser-extension.mdx index c8a5d4bcde..95365d811a 100644 --- a/mcp/configuration/browser-extension.mdx +++ b/mcp/configuration/browser-extension.mdx @@ -56,9 +56,9 @@ Works with Chrome/Chromium with `--remote-debugging-port`, Edge, Electron apps, ## Connect via browser extension -The [Playwright MCP Bridge extension](https://github.com/microsoft/playwright-mcp/blob/main/packages/extension/README.md) connects to your existing browser tabs, reusing your logged-in sessions, cookies, and installed extensions. +The [Playwright Extension](https://chromewebstore.google.com/detail/playwright-mcp-bridge/mmlmfjhmonkocbjadbfplnigmagldckm) connects to your existing browser tabs, reusing your logged-in sessions, cookies, and installed extensions. -Playwright MCP Bridge extension in Chrome Web Store +Playwright Extension in Chrome Web Store 1. Install the extension in Chrome or Edge 2. Configure the MCP server: