chrome-devtools-cli
Was er macht
Dieser Skill gibt dem KI-Agenten ein Kommandozeilenwerkzeug, das Chrome über DevTools steuert. Er richtet sich an Menschen, die Browseraufgaben automatisieren oder eine Website aus Skripten testen wollen.
Wann du ihn nutzt
- ✓Wenn du ein Skript willst, das eine Webseite öffnet, Schaltflächen klickt oder Formulare ausfüllt.
- ✓Wenn du einen Snapshot einer Seite brauchst, um Elemente für einen automatisierten Test zu finden.
- ✓Wenn du das Verhalten einer Webseite vom Terminal aus prüfen willst.
Link zum Skill
https://github.com/humanlayer/humanlayer/blob/main/.claude/skills/chrome-devtools-cli/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Öffne meine Website in Chrome, fülle das Kontaktformular aus und sag mir, ob es abgeschickt wurde.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent erstellt einen Textsnapshot der Seite, um jedes Element zu finden, und klickt oder tippt dann darauf. Die Browsersitzung bleibt zwischen den Befehlen offen, sodass Schritte aufeinander aufbauen können.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
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
- Execute: Run tools directly (e.g.,
chrome-devtools list_pages). The background server starts implicitly; do not runstart/status/stopbefore each use. - Inspect: Use
take_snapshotto get an element<uid>. - Act: Use
click,fill, 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"
Command Usage
chrome-devtools <tool> [arguments] [flags]
Use --help on any command. Output defaults to Markdown, use --output-format=json for JSON.
Input Automation (<uid> from snapshot)
chrome-devtools take_snapshot --help # Help message for commands, works for any command.
chrome-devtools take_snapshot # Take a text snapshot of the page to get UIDs for elements
chrome-devtools click "id" # Clicks on the provided element
chrome-devtools click "id" --dblClick true --includeSnapshot true # Double clicks and returns a snapshot
chrome-devtools drag "src" "dst" # Drag an element onto another element
chrome-devtools drag "src" "dst" --includeSnapshot true # Drag an element and return a snapshot
chrome-devtools fill "id" "text" # Type text into an input or select an option
chrome-devtools fill "id" "text" --includeSnapshot true # Fill an element and return a snapshot
chrome-devtools handle_dialog accept # Handle a browser dialog
chrome-devtools handle_dialog dismiss --promptText "hi" # Dismiss a dialog with prompt text
chrome-devtools hover "id" # Hover over the provided element
chrome-devtools hover "id" --includeSnapshot true # Hover over an element and return a snapshot
chrome-devtools press_key "Enter" # Press a key or key combination
chrome-devtools press_key "Control+A" --includeSnapshot true # Press a key and return a snapshot
chrome-devtools type_text "hello" # Type text using keyboard into a focused input
chrome-devtools type_text "hello" --submitKey "Enter" # Type text and press a submit key
chrome-devtools upload_file "id" "file.txt" # Upload a file through a provided element
chrome-devtools upload_file "id" "file.txt" --includeSnapshot true # Upload a file and return a snapshot
Navigation
chrome-devtools close_page 1 # Closes the page by its index
chrome-devtools list_pages # Get a list of pages open in the browser
chrome-devtools navigate_page --url "https://example.com" # Navigates the currently selected page to a URL
chrome-devtools navigate_page --type "reload" --ignoreCache true # Reload page ignoring cache
chrome-devtools navigate_page --url "https://example.com" --timeout 5000 # Navigate with a timeout
chrome-devtools navigate_page --handleBeforeUnload "accept" # Handle before unload dialog
chrome-devtools navigate_page --type "back" --initScript "foo()" # Navigate back and run an init script
chrome-devtools new_page "https://example.com" # Creates a new page
chrome-devtools new_page "https://example.com" --background true --timeout 5000 # Create new page in background
chrome-devtools new_page "https://example.com" --isolatedContext "ctx" # Create new page with isolated context
chrome-devtools select_page 1 # Select a page as a context for future tool calls
chrome-devtools select_page 1 --bringToFront true # Select a page and bring it to front
Emulation
chrome-devtools emulate --networkConditions "Offline" # Emulate network conditions
chrome-devtools emulate --cpuThrottlingRate 4 --geolocation "0,0" # Emulate CPU throttling and geolocation
chrome-devtools emulate --colorScheme "dark" --viewport "1920x1080" # Emulate color scheme and viewport
chrome-devtools emulate --userAgent "Mozilla/5.0..." # Emulate user agent
chrome-devtools resize_page 1920 1080 # Resizes the selected page's window
Performance
chrome-devtools performance_analyze_insight "1" "LCPBreakdown" # Get more details on a specific Performance Insight
chrome-devtools performance_start_trace true false # Starts a performance trace recording
chrome-devtools performance_start_trace true true --filePath t.gz # Start trace and save to a file
chrome-devtools performance_stop_trace # Stops the active performance t
Häufige Fragen
Muss ich vorher etwas einrichten?
Ja. Vor der ersten Nutzung ist eine einmalige Installation nötig, wie in den Einrichtungshinweisen des Skills beschrieben.
Kann ich die Ausgabe als Daten bekommen?
Ja. Mit der JSON-Ausgabeoption erhältst du strukturierte Ergebnisse statt Markdown.
Warum macht der Agent zuerst einen Snapshot?
Der Snapshot listet jedes Element mit einer ID auf, die der Agent braucht, um das Element anzuklicken oder auszufüllen.
Details
Originalbeschreibung des Autors
Use this to skill to write shell scripts or run shell commands to automate tasks in the browser or otherwise use Chrome DevTools via CLI.
repo: humanlayer/humanlayer
Beliebtheit
- GitHub-Sterne
- 13k
- Platz im Ranking
- #11383
- Lizenz
- Apache-2.0
- Aktualisiert
- 31.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
asd-ste100
13kBringt deinem Agenten bei, verwirrendes Englisch in kurze Sätze mit nur einer Bedeutung umzuschreiben, die für Menschen und andere Software leicht zu lesen sind.
better-github-skill
13kHilft deinem Agenten, den Status eines Pull Requests zu prüfen, seine Review-Kommentare zu lesen und herauszufinden, warum ein CI-Build fehlgeschlagen ist, mit fertigen GitHub-Skripten.
calldiff
13kHilft deinem Agenten, die Ketten von Funktionsaufrufen in einer Codebasis zwischen zwei Git-Versionen zu vergleichen, damit eine Code-Prüfung sieht, welches Verhalten sich geändert hat.
effect-program-design
13kHilft deinem Agenten, produktionsreife Effect-v4-Programme zu entwerfen und zu testen, mit klaren Services, typisierten Fehlern, Layern und sicherer Ressourcenbehandlung.
Ähnliche Skills
test-driven-development
311kBringt deinem Agenten bei, vor jedem Feature oder Fix zuerst einen fehlschlagenden Test zu schreiben, ihn fehlschlagen zu sehen und dann den kleinsten passenden Code zu schreiben.
verification-before-completion
311kBringt deinem Agenten bei, echte Prüfungen auszuführen und ihre Ausgabe zu lesen, bevor er behauptet, eine Aufgabe, ein Fix oder ein Build sei fertig oder bestehe.
migrate-to-shoehorn
310kErsetzt riskante Typumwandlungen in deinen Testdateien durch die Bibliothek shoehorn, damit Tests mit unvollständigen Daten arbeiten und trotzdem die Typprüfung bestehen.