-
Notifications
You must be signed in to change notification settings - Fork 245
change from MCP to CLI command to increase token efficiency #39
Description
attempt to reduce token count and hitting quota, this could be simple to implement by instructing claude to use new skills for cli
Playwright CLI with SKILLS
Playwright CLI vs Playwright MCP
This package provides CLI interface into Playwright. If you are using coding agents, that is the best fit.
CLI: Modern coding agents increasingly favor CLI–based workflows exposed as SKILLs over MCP because CLI invocations are more token-efficient: they avoid loading large tool schemas and verbose accessibility trees into the model context, allowing agents to act through concise, purpose-built commands. This makes CLI + SKILLs better suited for high-throughput coding agents that must balance browser automation with large codebases, tests, and reasoning within limited context windows.
MCP: MCP remains relevant for specialized agentic loops that benefit from persistent state, rich introspection, and iterative reasoning over page structure, such as exploratory automation, self-healing tests, or long-running autonomous workflows where maintaining continuous browser context outweighs token cost concerns. Learn more about Playwright MCP.
Key Features
Token-efficient. Does not force page data into LLM.
Requirements
Node.js 18 or newer
Claude Code, GitHub Copilot, or any other coding agent.