This example adds the Playwright MCP service to txtai agents.
Start the Playright MCP server locally.
npx @playwright/mcp@latest --port 8931
Run a txtai agent with browser automation access.
from txtai import Agent
agent = Agent(
tools=["http://localhost:8931/sse"],
model="LLM path (LLM API (OpenAI, Anthropic), Local LLM, GGUF path"
)
agent("Research summer vacation options")