chrome-devtools-cli
Skill by humanlayer
chrome-devtools-cli is an agent skill that lets an AI assistant automate browser tasks through the chrome-devtools-mcp CLI. It is for users who write shell scripts or run shell commands to control Chrome DevTools.
Install chrome-devtools-cli
Built from the published package, never by AI.
git clone --depth 1 https://github.com/humanlayer/humanlayer /tmp/humanlayer && mkdir -p ~/.claude/skills && cp -r /tmp/humanlayer/.claude/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/humanlayer/humanlayer /tmp/humanlayer && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/humanlayer/.claude/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
chrome-devtools-cli is an agent skill that teaches an AI assistant to use the chrome-devtools-mcp CLI from a terminal. The CLI lets the assistant interact with the browser by running commands such as list_pages, take_snapshot, click and fill. It covers input automation, navigation, emulation, performance traces, network requests, debugging and screenshots.
The workflow runs a tool directly, takes a snapshot to get element uid values, then acts on those elements. The background server starts implicitly, so the assistant does not need to run start, status or stop before each use. Output defaults to Markdown, and --output-format=json returns JSON. The skill is meant for people who want to write shell scripts or run shell commands to automate tasks in the browser.
Written from the project's SKILL.md and checked against it.
What it can do
- take_snapshotTakes a text snapshot of the page to get element uid values.
- clickClicks an element by uid, with options such as double click.
- fillTypes text into an input or selects an option on the page.
- navigate_pageNavigates the selected page to a URL, reloads it, or goes back.
- take_screenshotTakes a screenshot of the viewport, the full page or one element.
- evaluate_scriptEvaluates a JavaScript function on the page.
- list_network_requestsLists network requests with pagination and resource type filters.
- performance_start_traceStarts a performance trace recording, which performance_stop_trace ends.
- lighthouse_auditRuns a Lighthouse audit for a navigation or a snapshot.
- emulateEmulates network conditions, CPU throttling, geolocation, viewport and more.
Try asking
- Open example.com and take a snapshot of the page.
- Fill in the login form on this page and submit it.
- Run a Lighthouse audit on this page for mobile.
Good to know
- Installation is a one-time prerequisite described in a separate reference file.
- Output defaults to Markdown. Use --output-format=json for JSON.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/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.md7 KB -
references/installation.md879 B
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
Does the assistant need to start the server first?
No. The background server starts implicitly when a tool runs, so start, status and stop are not needed before each use.
How does the assistant find elements to click?
It runs take_snapshot to get an element uid, then passes that uid to tools such as click or fill.
Can the output be read by other programs?
Yes. Add --output-format=json to get JSON output instead of the default Markdown.
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 93 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.
