Playwright is a powerful browser automation tool that can be used with the Model Context Protocol (MCP) to enable agents to interact with web browsers.
Once the Playwright MCP server is running, you can create an agent that uses it as a tool:
Copy
from praisonaiagents import Agent, MCPsearch_agent = Agent( instructions="""You help search the web.""", llm="gpt-4o-mini", tools=MCP("http://localhost:8931/sse"))search_agent.start("Find about Praison AI")
The agent will be able to use Playwright to automate browser interactions and search the web.