Run End-to-End Tests from Your Terminal with Kane CLI

Author and Run Tests Right from the Terminal in Natural Language, with an Evidence-Backed Pass or Fail from a Real Browser.

npm install -g @testmuai/kane-cli

PlaywrightAIAutomation

Chrome DevTools MCP vs Playwright MCP: Debug, Drive, Then Verify

Part of: Playwright

Chrome DevTools MCP vs Playwright MCP, checked against both projects' docs: browsers, tools, setup, token trims, and the test verdict neither gives you.

Published on:

Chrome DevTools MCP is the better option if your coding agent is going to be debugging in Chrome (performance traces, Lighthouse audits, heap snapshots and full network requests). Playwright MCP is the better option if the agent is going to be driving a flow in Chrome, Firefox, WebKit or Edge. Neither of the servers will retain a pass/fail verdict that you can re-run.

Most of the comparisons end at "debugging versus driving". This one goes on to the next job, which is to prove that the flow still works after the next commit. That's where the Kane CLI from TestMu AI comes in.

TL;DR

Chrome DevTools MCP vs Playwright MCP comes down to the job. Chrome DevTools MCP gives a coding agent Chrome's debugger for performance traces, Lighthouse audits, heap snapshots and full network requests, while Playwright MCP drives flows in Chrome, Firefox, WebKit and Edge. Neither server keeps a pass/fail verdict you can re-run in CI.

Playwright MCP vs Chrome MCP by Job

  • Best for debugging in Chrome: Chrome DevTools MCP - records performance traces, runs lighthouse_audit, returns full network requests with headers and bodies, and compares heap snapshots, so an agent can explain why a page is slow, broken or leaking memory.
  • Best for driving a flow across browsers: Playwright MCP - reads the page as an accessibility-tree snapshot with element refs, and its --browser option takes chrome, firefox, webkit or msedge, so an agent can reproduce a WebKit-only bug.
  • Best for a verdict that holds on the next run: Kane CLI by TestMu AI - saves the run as a _test.md file, replays unchanged steps with no LLM cost, and exits 0 on a pass and 1 on a fail, with an evidence pack for the reviewer.

Chrome DevTools MCP in Claude Code and Cursor

  • Chrome DevTools MCP Claude Code plugin: Inside Claude Code, run /plugin marketplace add ChromeDevTools/chrome-devtools-mcp, then /plugin install chrome-devtools-mcp@chrome-devtools-plugins. Playwright MCP sits alongside it after claude mcp add playwright npx @playwright/mcp@latest.
  • Chrome DevTools MCP Cursor setup: Cursor and other MCP clients take the JSON server entry from each project's README, and Chrome DevTools MCP and Playwright MCP run side by side without conflict, so the agent can pick one per task.

What's the Difference Between the Chrome DevTools MCP and the Playwright MCP?

Chrome DevTools MCP is Google's MCP server that gives a coding agent access to the DevTools panel. The Chrome team's launch post says it all: "The Chrome DevTools MCP server adds debugging capabilities to your AI agent." It uses Puppeteer to automate Chrome and exposes the performance, network, console, memory, and Lighthouse tools.

Playwright MCP is Microsoft's MCP server which gives the coding agent a Playwright-controlled browser. The Playwright docs state it "operates on the accessibility tree rather than the pixels": it gets a ref to each element, and the model clicks that by, rather than trying to work out where to click on the page.

Chrome DevTools MCP gives a coding agent Chrome's debugger; Playwright MCP gives it a cross-browser driver, and neither one keeps a pass/fail verdict between runs. Both are free and open source.

Note

Building checks with a coding agent?

Note: Kane CLI (TestMu AI's testing agent for coding agents) takes a browser task and turns it into a saved test with a pass/fail result and an evidence pack. Install it via npm install -g @testmuai/kane-cli.

Chrome DevTools MCP vs Playwright MCP at a Glance (as of Nov 2026)

Chrome DevTools MCPPlaywright MCP
MaintainerChrome DevTools team (ChromeDevTools/chrome-devtools-mcp)Microsoft (microsoft/playwright-mcp)
What its docs say it is forDebugging and performance work for coding agentsBrowser automation using Playwright
BrowsersGoogle Chrome and Chrome for Testing; other Chromium browsers "may work"Chrome, Firefox, WebKit, Edge (--browser)
How the agent reads the pagetake_snapshot and take_screenshot; automation via PuppeteerAccessibility-tree snapshot with element refs
Tool count57 tools in 11 categories; extensions, third-party, WebMCP and PWA groups off by default24 core tools plus browser_tabs; more behind --caps
Performance and auditsPerformance trace and insight tools; lighthouse_auditNo performance-insight or audit tool; tracing and video via --caps=devtools
Memory13 memory tools for heap snapshots (most need --memoryDebugging=true)None listed
NetworkList requests; get_network_request with headers and bodies; emulate network conditionsList and inspect requests; mock with browser_route (--caps=network)
Built-in checksNone listed (agent can run evaluate_script)browser_verify_* tools and browser_generate_locator (--caps=testing)
Attach to your own browser--autoConnect (Chrome 144+), --browserUrl, --wsEndpoint--extension (Playwright Extension, Chrome/Edge), --cdp-endpoint
Trim the tool list--slim (3 tools), category flagsOptional groups stay off until --caps

When Should a Coding Agent Use Chrome DevTools MCP?

Chrome DevTools MCP is the right server when the question starts with "why":

  • Slow pages. performance_start_trace will record a Chrome performance trace, and performance_analyze_insight will explain a finding such as a slow LCP. lighthouse_audit will not include performance in its audit; the tool reference will point you to the trace tools for that.
  • Failing API calls. get_network_request returns a request with headers and bodies so the agent can see a CORS error or a hidden 500.
  • Memory leaks. Thirteen memory tools for heap snapshots (including compare_heapsnapshots) - most of them require --memory-debugging=true.
  • Your actual session. --autoConnect attaches to an open Chrome 144+ profile (remote debugging enabled in chrome://inspect), and --browserUrl attaches to a debuggable instance as per the config guide.

Two defaults to be aware of before using it at work according to the Chrome DevTools MCP README: usage stats are on by default unless you pass --no-usage-statistics (or set CI), and the performance tools will send trace URLs to Google's CrUX API unless you pass --no-performance-crux.

When Should a Coding Agent Use Playwright MCP?

Playwright MCP is the server to use when you're doing something in a browser (particularly outside of Chrome). It has a --browser option which will take chrome, firefox, webkit and msedge so an agent can in fact reproduce a WebKit-only bug.

It also ships flow tools that Chrome DevTools MCP doesn't list: browser_route for mocking (--caps=network), cookie and storage-state tools (--caps=storage), and browser_generate_locator plus four browser_verify_* checks (--caps=testing).

Microsoft adds a caveat itself. The Playwright MCP README tells coding-agent users they "might benefit from using the CLI+SKILLS instead," and the Playwright MCP docs rate MCP's token cost higher than the CLI's because tool schemas and snapshots sit in context. Our Playwright MCP setup and limits guide covers that choice.

Can You Run the Chrome DevTools MCP and the Playwright MCP Together?

Yes, they don't conflict, so you can install both and have the agent pick per task. In Claude Code:

# Playwright MCP (command from its README)
claude mcp add playwright npx @playwright/mcp@latest

# Chrome DevTools MCP (plugin route from its README, typed inside Claude Code)
/plugin marketplace add ChromeDevTools/chrome-devtools-mcp
/plugin install chrome-devtools-mcp@chrome-devtools-plugins

Cursor and various other clients make use of the JSON entry in each README.

Every tool schema comes at a cost in terms of context. The Chrome DevTools MCP --slim flag brings the schema down to 3 tools, and flags such as --categoryPerformance=false will remove an entire category. Playwright MCP has the network, storage, testing and vision tools all off until you go --caps.

Snapshot size is also important. In TestMu AI's own measurement of one store task, Playwright MCP returned 42,333 tokens of page text with full snapshots and 4,076 with browser_find (details in where Claude Code tokens go).

What Neither MCP Server Gives You: A Verdict That Holds on the Next Run

Both servers hand the agent observations, and the model decides what they mean. That suits debugging, not regression testing:

  • The verdict goes to the model. "Checkout works" is what the agent reads from the tool output. Playwright MCP's browser_verify_text_visible only checks for one string; it doesn't check all the conditions that would be required for a release.
  • Every rerun pays full price. The agent re-drives each step, so today's reasoning is paid for again on the next commit.
  • Nothing ever gets to CI on its own. The server doesn't exit with a pass/fail code or seal off a report for a reviewer to open up later.

Kane CLI is a terminal testing agent that Claude Code, Codex, Gemini CLI and Cursor can all call. The Kane CLI page defines its pass rule as "a pass means that every acceptance criterion for that scenario is satisfied". Reasoning owns the path; your criteria own the verdict.

A wrong order total is reported as a bug and is never healed into a pass.

The Debug, Drive, Verify checklist

LaneQuestionToolLeaves a repeatable check?
DebugWhy is this page slow, broken or leaking memory?Chrome DevTools MCPNo. Fix it and move on
DriveCan an agent complete this flow in this browser?Playwright MCPSometimes, as exploration notes
VerifyDoes this flow still meet its criteria after the next change?Kane CLIYes, as a saved test with evidence

Rule of thumb: if you're asking the same browser question twice, then it's in the Verify lane.

Debug, Drive, Verify checklist mapping Chrome DevTools MCP, Playwright MCP and Kane CLI to browser tasks.

Kane CLI vs Playwright MCP vs Chrome DevTools MCP for Repeat Testing (as of Nov 2026)

Chrome DevTools MCPPlaywright MCPKane CLI
Who decides pass or failThe agentThe agent; --caps=testing checks one item per callYour acceptance criteria and checkpoints
Second run of the same checkAgent re-drives every stepAgent re-drives every stepkane-cli testmd run replays unchanged steps with no LLM cost
UI changed since last runAgent re-reasonsAgent re-reasonsAdaptive healing, then re-authors the affected steps
CI signalNone built inNone built inExit codes 0 pass, 1 fail, 2 did not start, 3 timeout or cancel
Evidence a reviewer can openWhatever the agent savedTraces and video via --caps=devtoolsSealed .evidence pack per run
Console and network rules as assertionsInspected by the agentInspected by the agentDevTools checkpoints, e.g. Assert: no console errors
Browsers and devicesChromeChrome, Firefox, WebKit, EdgeChrome (local or HyperExecute); Android and iOS emulators, simulators, real devices
Cost to startFree, open sourceFree, open sourceTestMu AI account and credits; 10,000 free credits for 30 days

For a quick visual walkthrough of this concept, watch the video below from TestMu AI.

Youtube thumbnail

Subscribe to the TestMu AI YouTube channel for more tutorials on testing and automation.

How to Turn a DevTools Finding Into a Saved Kane CLI Check

If Chrome DevTools MCP had shown your agent a console error and a 500 on the pricing page, you'd want that caught on every PR after the fix. Kane CLI checkpoints have a DevTools method which will read the network, console and performance data so those very same signals can be turned into assertions.

npm install -g @testmuai/kane-cli
kane-cli login
kane-cli run "Open the pricing page and verify the Pro plan card shows a monthly price. Assert: no console errors. Assert: no API calls returned 5xx. Assert: page LCP is under 2500ms." \
 --url https://staging.example.com \
 --name pricing-check \
 --headless --agent
  • --agent streams NDJSON events your coding agent parses, ending with a run_end line.
  • The exit code is the verdict: 0 (passed), 1 (did not pass), 2 (never started, no credits used), 3 (canceled or timed out).
  • --name saves the session as .testmuai/tests/pricing-check_test.md and copies the run's sealed .evidence pack (per-step screenshots, console and network logs, run logs, failure records) over to .testmuai/evidence/. You can open a pack with kane-cli evidence serve <path-to-pack> or via evidence.lambdatest.com (the Kane CLI page states that it uploads nothing).
Kane CLI run in agent mode streaming NDJSON events and exiting with code 1 after its no-console-errors checkpoint failed on a pricing page.Kane CLI evidence pack showing step screenshots and the failed console-errors checkpoint for a pricing page check.

That saved file is a standard _test.md, so the check now runs on every single run. The Kane CLI test.md docs state that you can just move it into your repo and edit it as you like:

kane-cli testmd run .testmuai/tests/pricing-check_test.md

In CI, pass credentials from secrets instead of running kane-cli login, as the Kane CLI CI/CD docs show:

kane-cli run "<objective>" --name pricing-check --headless --timeout 300 \
 --username "$LT_USERNAME" --access-key "$LT_ACCESS_KEY"

On GitHub, the kane-cli-browser-run action from the LambdaTest/kane-cli repo will post the verdict as a PR comment, link the evidence pack to the hosted viewer, and fail the job on a non-zero exit.

How Does Kane CLI Manage to Keep the Cost of Repeat Runs So Low?

Kane CLI's first run has each step authored by the model. After that, kane-cli testmd run simply replays each step's recording "with no agent involved and no LLM cost" (according to the test.md running docs). A step will be replayed if its recording exists and its objective text is the same.

When the app changes and a replay fails to hit its target, adaptive healing (on by default) will attempt up to three smaller replay windows before re-authoring the authorable steps. The Kane CLI page describes two levels of healing: step-heal, which re-finds one moved element by what it is, and flow-heal, which will only re-reason the path if a step cannot be healed (it will never re-reason the acceptance criteria). --no-adaptive-heal will cause a replay miss to fail immediately.

One hard boundary: healing discovers things; it doesn't judge what the thing means. If a button keeps its label but routes to a different location, then assert on the destination page so that the run fails in an obvious manner.

What About Playwright CLI or Claude in Chrome?

Playwright CLI is Microsoft's CLI option for coding agents. Playwright.dev has Playwright CLI at a lower token cost than MCP, and we have a Playwright CLI command guide.

Claude in Chrome is an extension that takes Claude Code and connects it to the Chrome or Edge that you already have (logins included), doesn't work with Firefox or Safari. Both of them drive a browser. Neither of them keeps a saved verdict.

When Is Playwright MCP the Better Option Versus Chrome DevTools MCP?

Playwright MCP is the better choice over Kane CLI when:

  • You need live exploration in Firefox or WebKit. Kane CLI's web runs use Chrome (either locally or on the HyperExecute macOS runners).
  • You want no account and no credits. Kane CLI requires a TestMu AI login and consumes credits.
  • Your agent runs exploratory automation or a long agentic loop; it uses playwright.dev lists for MCP.
  • Your end product is hand-reviewed Playwright test code. See Kane CLI vs Playwright.

Chrome DevTools MCP is the better choice over Kane CLI when:

  • The task is diagnosis: a performance trace, a heap snapshot comparison, or a Lighthouse audit.
  • You need the agent inside your own logged-in Chrome profile via --autoConnect.
  • The question is one-off, so a saved test would be a waste of time.

Teams who are replacing the Chrome DevTools MCP for flow testing can refer to the Chrome DevTools MCP alternative page.

Kane CLI - Testing Agent in Your Terminal

Conclusion

Next step: install the Kane CLI via npm install -g @testmuai/kane-cli, add the skill to Claude Code, Codex CLI or Gemini CLI via npx @testmuai/kane-cli-skill, and then follow the Kane CLI quick start to turn your next DevTools finding into a check that runs on every pull request.

Testing from the terminal? Kane CLI by TestMu AI lets SDETs and developers plan, write, run and debug tests from the command line.

To run your first test, start free, or
for a full walkthrough of the product.

Author

...

Sri Harsha

Blogs: 16

  • Linkedin

Sri Harsha is Engineering Manager of the Open Source Program Office at TestMu AI, where he leads open-source engineering behind the Selenium and Appium automation grid and builds agentic AI systems for quality engineering. He is a member of the Selenium Technical Leadership Committee and a committer to WebdriverIO and Appium, and was recognized with the LambdaTest Delta Award 2023 for Best Contributor in open-source testing. He brings over 10 years of experience in software testing and automation, with earlier roles at EPAM Systems and ZenQ. Sri Harsha holds a B.Tech in Computer Science from Jawaharlal Nehru Technological University.

Reviewer

...

Mayank Bhola

Reviewer

  • Linkedin

Mayank Bhola is Co-Founder and Head of Products at TestMu AI, where he leads the entire product portfolio across KaneAI, Kane CLI, HyperExecute, SmartUI, the Real Device Cloud, Accessibility, and other software testing product lines. As an early Lead Architect he designed and built the company's flagship Tunnel technology from scratch, created the React-based automation platform, and architected the data-intensive pipelines and FAAS services that scale it. He brings more than 10 years of experience in software development and product engineering, with earlier roles as Head of Technology at Juggernaut Books and Senior Software Engineer at PressPlay TV and Zomato. Mayank holds a B.Tech in Computer Engineering from JIIT Noida.

Chrome DevTools MCP vs Playwright MCP FAQs

Did you find this page helpful?

More Related Blogs

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests