chrome-devtools-cli
하는 일
이 스킬은 DevTools를 통해 Chrome을 조작하는 명령줄 도구를 AI 에이전트에게 제공합니다. 브라우저 작업을 자동화하거나 스크립트로 웹사이트를 테스트하려는 사람을 위한 스킬입니다.
사용하는 경우
- ✓웹 페이지를 열고 버튼을 클릭하거나 양식을 채우는 스크립트가 필요할 때.
- ✓자동 테스트에서 요소를 찾기 위해 페이지 스냅숏이 필요할 때.
- ✓터미널에서 웹 페이지의 동작을 확인하고 싶은 경우.
스킬 링크
https://github.com/humanlayer/humanlayer/blob/main/.claude/skills/chrome-devtools-cli/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 웹사이트를 Chrome에서 열고 연락처 양식을 채운 뒤, 제출되었는지 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 페이지의 텍스트 스냅숏을 찍어 각 요소를 찾은 뒤 클릭하거나 입력합니다. 브라우저 세션이 명령 사이에 열려 있으므로 단계가 서로 이어질 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
먼저 설정해야 하나요?
네. 스킬의 설정 안내에 나온 대로 처음 사용 전에 한 번 설치해야 합니다.
결과를 데이터로 받을 수 있나요?
네. JSON 출력 옵션을 추가하면 Markdown 대신 구조화된 결과를 받을 수 있습니다.
에이전트는 왜 먼저 스냅숏을 찍나요?
각 요소에 ID가 붙은 목록이 있어야 그 요소를 클릭하거나 채울 수 있기 때문입니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 13k
- 순위
- #11383
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 10. 31.
댓글
- …
이 저장소의 다른 스킬
asd-ste100
13k혼동되는 영어를 짧고 뜻이 하나뿐인 문장으로 다시 써서, 사람과 다른 소프트웨어가 쉽게 읽을 수 있게 하도록 에이전트를 가르칩니다.
better-github-skill
13k풀 리퀘스트 상태를 확인하고, 리뷰 댓글을 읽고, 준비된 GitHub 스크립트로 CI 빌드가 실패한 이유를 찾도록 에이전트를 돕습니다.
calldiff
13k두 git 버전 사이 코드베이스의 함수 호출 체인을 비교해, 코드 리뷰에서 어떤 동작이 바뀌었는지 볼 수 있도록 에이전트를 돕습니다.
effect-program-design
13k명확한 서비스, 타입이 있는 오류, 레이어, 안전한 리소스 처리로 실제 운영 가능한 Effect v4 프로그램을 설계하고 테스트하도록 에이전트를 돕습니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.