Skip to content
chromedevtools avatar

Chrome Devtools Cli

Browser automation CLI that drives Chrome DevTools from shell scripts with persistent page state across commands.

CCM score
70 of 100
skills.sh installs
9.5K
GitHub stars
59.8K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers page inspection, input automation, navigation, emulation, performance tracing, memory heap analysis, and network requests
  • Includes commands such as take_snapshot, click, fill, navigate_page, emulate, performance_start_trace, and take_heapsnapshot
  • Enforces file access by default with --allowUnrestrictedPaths=true, which can be set to false to restrict paths to the OS temp directory
  • Designed for scripting browser tasks from a terminal, with a background server that starts implicitly on first use

Install

$ npx -y skills add chromedevtools/chrome-devtools-mcp --skill chrome-devtools-cli -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

The chrome-devtools-mcp CLI lets you interact with the browser from your terminal.

Setup

Note: If this is your very first time using the CLI, see references/installation.md for setup. Installation is a one-time prerequisite and is not part of the regular AI workflow.

AI Workflow

  1. Execute: Run tools directly. If you don't know the target page's ID, run chrome-devtools list_pages to find it. The background server starts implicitly; do not run start/status/stop before each use.
  2. Inspect: Use chrome-devtools take_snapshot <pageId> to get an element <uid>.
  3. Act: Use chrome-devtools click <pageId> <uid>, chrome-devtools fill <pageId> <uid> <value>, etc. State persists across commands.

Snapshot example:

uid=1_0 RootWebArea "Example Domain" url="https://example.com/"
  uid=1_1 heading "Example Domain" level="1"

Permissions & File Access

Details

Repository
github.com/chromedevtools/chrome-devtools-mcp
Categories
Browser Automation & Scraping, CLI & Terminal
First seen
May 16, 2026

More from chromedevtools/chrome-devtools-mcp

All 6

Similar to Chrome Devtools Cli

More Browser Automation & Scraping