Skip to main content

Module playwright

Module playwright 

Source
Expand description

Stdio passthrough for the official @playwright/mcp server.

Spawns the Playwright MCP as a child process, injects --cdp-endpoint <url> resolved from our browser registry, and forwards stdin/stdout/stderr bidirectionally.

Functionsยง

run
Spawn the official Playwright MCP server and forward stdio bidirectionally.
run_with_streams
Same as run, but tests can pass custom streams and override the launcher command.