Skip to main content

PlaywrightMCPToolkit

PlaywrightMCPToolkit provides an interface for interacting with web browsers using the Playwright automation library through the Model Context Protocol (MCP). Parameters:
  • timeout (Optional[float]): Connection timeout in seconds. (default: :obj:None)
  • additional_args (Optional[List[str]]): Additional command-line arguments to pass to the Playwright MCP server. For example, ["--cdp-endpoint=http://localhost:9222"]. (default: :obj:None)
Note: Currently only supports asynchronous operation mode.

init

Initializes the PlaywrightMCPToolkit. Parameters:
  • timeout (Optional[float]): Connection timeout in seconds. (default: :obj:None)
  • additional_args (Optional[List[str]]): Additional command-line arguments to pass to the Playwright MCP server. For example, ["--cdp-endpoint=http://localhost:9222"]. (default: :obj:None)