PlaywrightMCPToolkit

class PlaywrightMCPToolkit(BaseToolkit):

PlaywrightMCPToolkit provides an interface for interacting with web browsers using the Playwright automation library through the Model Context Protocol (MCP).

Attributes: timeout (Optional[float]): Connection timeout in seconds. (default: :obj:None)

Note: Currently only supports asynchronous operation mode.

init

def __init__(self, timeout: Optional[float] = None):

Initializes the PlaywrightMCPToolkit with the specified timeout.

Parameters:

  • timeout (Optional[float]): Connection timeout in seconds. (default: :obj:None)

get_tools

def get_tools(self):

Returns:

List[FunctionTool]: List of available tools.