Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

chrome-devtools-cli

Skill by ChromeDevTools

Automates Chrome from the command line with the chrome-devtools CLI. It lets an AI assistant write shell scripts or run commands that drive browser pages and use Chrome DevTools.

  • Score 94
  • 61k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install chrome-devtools-cli

Built from the published package, never by AI.

git clone --depth 1 https://github.com/ChromeDevTools/chrome-devtools-mcp /tmp/chrome-devtools-mcp && mkdir -p ~/.claude/skills && cp -r /tmp/chrome-devtools-mcp/skills/chrome-devtools-cli ~/.claude/skills/chrome-devtools-cli

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install chrome-devtools-cli in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The chrome-devtools-cli skill teaches an AI assistant to automate Chrome by running chrome-devtools commands in a shell. Each tool is called as chrome-devtools <tool> with positional arguments and optional flags. The daemon starts implicitly when a tool runs. The usual workflow is to list pages, take a snapshot to get element uids, then act on those uids with interaction tools. State persists across commands.

Output defaults to Markdown, with a JSON option. Full filesystem access is on by default and can be limited to the OS temp directory when the daemon starts. Tool calls time out after 180 seconds unless a longer --rpc-timeout is set. The skill suits developers and anyone who writes shell scripts to automate browser tasks or use Chrome DevTools from the terminal.

Written from the project's SKILL.md and checked against it.

What it can do

  • list_pagesLists open pages to find the pageId used by other tools.
  • new_pageOpens a new page at a given URL.
  • navigate_pageNavigates a page to a URL, or reloads or goes back.
  • take_snapshotReturns a page snapshot with element uids for later interaction.
  • clickClicks an element by its uid, with an option for double click.
  • fillFills an element identified by uid with text.
  • press_keyPresses a key on a page, such as Enter.
  • evaluate_scriptRuns a JavaScript function on a page and returns the result.
  • list_console_messagesLists console messages on a page, optionally filtered by type.
  • take_screenshotCaptures a screenshot, optionally of the full page, to a file.

Try asking

  • Open example.com and take a full-page screenshot of it.
  • Fill the search box on the current page with a query and press Enter.
  • List the error messages in the console for page 1.

Good to know

  • Tool calls time out after 180 seconds unless --rpc-timeout is set.
  • Full filesystem access is on by default.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/chrome-devtools-cli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md3 KB
  • references/debugging-and-network.md5 KB
  • references/emulation-extensions-and-pwa.md3 KB
  • references/installation.md879 B
  • references/performance-and-memory.md2 KB

Alternatives to chrome-devtools-cli

All alternatives →

Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser

chrome-devtools-cli: common questions

How does the assistant find elements on a page?

It runs take_snapshot to get element uids, then passes a pageId and uid to tools such as click or fill.

Can I restrict the file access this skill has?

Yes. Pass --allowUnrestrictedPaths=false on start to restrict file access to the OS temp directory.

What output format does the CLI return?

Output defaults to Markdown. Pass --output-format=json to get JSON.

How do I install chrome-devtools-cli?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is chrome-devtools-cli free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is chrome-devtools-cli safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to chrome-devtools-cli?

Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.

chrome-devtools-cli Install

Add to stack

Loading.