cd /news/ai-agents/playwright-mcp-vs-kane-cli-42333-vs-… · home › topics › ai-agents › article
[ARTICLE · art-175271] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Playwright MCP vs Kane CLI: 42,333 vs 2,056 tokens

TestMu AI (formerly LambdaTest) measured token consumption for two ways a coding agent can drive browser testing: Playwright MCP versus its own Kane CLI. In a single iPhone add-to-cart flow on its Ecommerce Playground, Playwright MCP with full snapshots returned 42,333 tokens to the calling agent across 12 tool calls, while Kane CLI returned 2,056 tokens in one command; using Playwright's browser_find cut the MCP figure to 4,076 tokens. The team attributed most of the snapshot cost to page reads, with the store's home page alone accounting for 20,116 tokens, and noted the Kane CLI run took 96.7 seconds versus 15 seconds of browser time for MCP.

recommendation

Prefer targeted browser_find queries or a delegated browser agent over full-page snapshots to keep agent context small; the source measured 42,333 tokens for snapshots versus 4,076 for browser_find on the same flow.

more in playbook: Controlling LLM cost
read3 min views2 publishedNov 24, 2026

When a coding agent tests a web app through Playwright MCP, its own model drives the browser one tool call at a time and decides whether the test passed. With Kane CLI, which we build at TestMu AI (formerly LambdaTest), the agent hands one plain-English objective to a separate browser agent and gets back a pass or fail with evidence.

We wanted to know how much text each approach puts in front of the calling agent, so we ran the same flow both ways and counted every response.

The short version:

browser_find: The headline gap is against full snapshots. Against browser_find, the gap is much smaller. This is one flow, so treat it as one data point.

On TestMu AI's Ecommerce Playground:

browser_snapshot before each action. In the second, it uses browser_navigate and browser_click save the snapshot to a file and return only a link, so the agent has to ask for the page again before its next action.--agent --headless, then replayed the saved test. o200k_base tokenizer.

Measure Playwright MCP, full snapshots Playwright MCP, browser_find Kane CLI, first run Kane CLI, replay
Setup text loaded 4,396 tokens of tool definitions 4,396 tokens of tool definitions 1,784 tokens, if the agent reads the hosted skill Same skill, already read
Calls from the agent 12 tool calls 12 tool calls 1 command 1 command
Text returned to the agent 42,333 tokens 4,076 tokens 2,056 tokens in 24 NDJSON lines 3,575 tokens in 53 NDJSON lines
Final result line only None; the agent decides None; the agent decides 764 tokens 65 tokens
Browser time 15 seconds, plus the agent's thinking on 12 turns 15 seconds, plus the agent's thinking on 12 turns 96.7 seconds, reasoning included 23 seconds
Kane CLI credits None None 22.8 credits None

All four runs confirmed an iPhone in the cart.

Snapshots are the cost. With full snapshots, four page reads made up 41,385 of the 42,333 tokens. The store's home page alone was 20,116 tokens: a 1,360-line accessibility tree with 1,156 element references.

browser_find helps, if the agent knows what to look for. Searching for "Search For Products" or "Add to Cart" cut the reads to a few hundred tokens each. The search-results page still returned 2,241 tokens, because "iPhone" matched every product card.

Kane CLI's result is small and structured. The agent can read only the final run_end line, which carries the status, a summary and the values Kane CLI extracted.

Approval checks add up. The Playwright MCP flow made 12 MCP tool calls. In Cursor, that means 12 prompts under an empty allowlist, or 12 classifier reviews under Auto-review. The Kane CLI command needed at most one. Only Run Everything skips the checks.

The difference is who decides. Playwright MCP hands the agent browser snapshots and leaves the judgment to the model. Kane CLI runs the objective itself and hands the agent a verdict.

Kane CLI installs from npm. This is the shape of the two Kane CLI runs, a first run saved by name and then a replay:

npm install -g @testmuai/kane-cli
kane-cli login --oauth

kane-cli run "Go to <your-store-url>, search for 'iPhone', open the first result, add it to the cart, then verify the cart lists an iPhone" \
  --agent --headless --name iphone-cart

kane-cli testmd run .testmuai/tests/iphone-cart_test.md --agent --headless

Run the same flow through Playwright MCP, count the responses with one tokenizer, and compare. If you get very different numbers, post the flow and the versions in the comments.

This measurement was first published in Playwright CLI vs Playwright MCP: Which Should Your Coding Agent Use?, which also covers Playwright CLI.

── more in #ai-agents 4 stories · sorted by recency
── more on @testmu ai 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/playwright-mcp-vs-ka…] indexed:0 read:3min 2026-11-24 · —