Skip to content

Support connecting to Playwright CRX extension (like playwright-mcp) #20

@PaulRBerg

Description

@PaulRBerg

Problem

The skill only launches fresh browser instances. There's no way to connect to an existing Chrome session with cookies, auth state, or specific extensions already configured.

Proposed Solution

Add support for connecting to existing browsers, like playwright-mcp's extension does.

Option A: CDP Connection

Support connectOverCDP() for Chrome launched with --remote-debugging-port=9222:

const browser = await chromium.connectOverCDP('http://localhost:9222');

Option B: Extension Integration

Build/integrate an extension similar to playwright-mcp's that exposes a WebSocket for the skill to connect and allows tab selection.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions