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.
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-cliRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ChromeDevTools/chrome-devtools-mcp /tmp/chrome-devtools-mcp && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/chrome-devtools-mcp/skills/chrome-devtools-cli ~/.gemini/antigravity-cli/skills/chrome-devtools-cliAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install chrome-devtools-cli in Antigravity CLI
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
ANo 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 →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
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.
