agent-browser
하는 일
이 스킬은 에이전트가 명령줄에서 Chrome 기반 브라우저를 제어해 사이트를 탐색하고 상호작용하게 합니다. 웹 앱 테스트, 양식 작성, 페이지에서 정보 추출에 유용합니다.
사용하는 경우
- ✓에이전트가 웹사이트를 열고 양식을 채우기를 원할 때.
- ✓웹 페이지에서 스크린샷이나 데이터를 얻고 싶을 때.
- ✓페이지를 차례로 클릭하며 웹 앱을 테스트하고 싶을 때.
스킬 링크
https://github.com/sipeed/picoclaw/blob/main/workspace/skills/agent-browser/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“가입 페이지를 열고, 테스트 정보로 양식을 채운 다음, 결과 화면을 스크린샷으로 찍어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 페이지를 열고 클릭할 수 있는 요소와 입력할 수 있는 요소를 참조 번호와 함께 나열한 뒤, 그 참조를 사용해 동작합니다. 변경이 있을 때마다 페이지를 새로 확인하는데, 이전 참조는 더 이상 유효하지 않기 때문입니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Agent Browser
CLI browser automation via Chrome/Chromium CDP. Install: npm i -g agent-browser && agent-browser install.
Before using this skill, verify the tool is available by running which agent-browser. If the command is not found, tell the user that browser automation requires the agent-browser CLI and Chromium, which are only available in the heavy container image. Do not attempt to install it at runtime.
Core Workflow
agent-browser open <url>— navigateagent-browser snapshot -i— get interactive elements with refs (@e1,@e2, ...)- Interact using refs —
click @e1,fill @e2 "text" - Re-snapshot after any navigation or DOM change — refs are invalidated
agent-browser open https://example.com/form
agent-browser snapshot -i
# @e1 [input] "Email", @e2 [input] "Password", @e3 [button] "Submit"
agent-browser fill @e1 "user@example.com"
agent-browser fill @e2 "secret"
agent-browser click @e3
agent-browser wait --load networkidle
agent-browser snapshot -i
Chain commands with && when you don't need intermediate output:
agent-browser open https://example.com && agent-browser wait --load networkidle && agent-browser snapshot -i
Commands
# Navigation
agent-browser open <url>
agent-browser close
# Snapshot
agent-browser snapshot -i # Interactive elements with refs
agent-browser snapshot -s "#selector" # Scope to CSS selector
# Interaction (use @refs from snapshot)
agent-browser click @e1
agent-browser fill @e2 "text" # Clear + type
agent-browser type @e2 "text" # Type without clearing
agent-browser select @e1 "option"
agent-browser check @e1
agent-browser press Enter
agent-browser scroll down 500
# Get info
agent-browser get text @e1
agent-browser get url
agent-browser get title
# Wait
agent-browser wait @e1 # Wait for element
agent-browser wait --load networkidle # Wait for network idle
agent-browser wait --url "**/dashboard" # Wait for URL pattern
agent-browser wait --text "Welcome" # Wait for text
agent-browser wait 2000 # Wait ms
# Capture
agent-browser screenshot # Screenshot to temp dir
agent-browser screenshot --full # Full page
agent-browser screenshot --annotate # With numbered element labels ([N] -> @eN)
agent-browser pdf output.pdf
# Semantic locators (when refs unavailable)
agent-browser find text "Sign In" click
agent-browser find label "Email" fill "user@test.com"
agent-browser find role button click --name "Submit"
Authentication
# Option 1: Import from user's running Chrome
agent-browser --auto-connect state save ./auth.json
agent-browser --state ./auth.json open https://app.example.com
# Option 2: Persistent profile
agent-browser --profile ~/.myapp open https://app.example.com/login
# ... login once, all future runs are authenticated
# Option 3: Session name (auto-save/restore)
agent-browser --session-name myapp open https://app.example.com/login
# ... login, close, next run state is restored
# Option 4: State file
agent-browser state save auth.json
agent-browser state load auth.json
Iframes
Iframe content is inlined in snapshots. Interact with iframe refs directly — no frame switch needed.
Parallel Sessions
agent-browser --session s1 open https://site-a.com
agent-browser --session s2 open https://site-b.com
agent-browser session list
JavaScript Eval
agent-browser eval 'document.title'
# Complex JS — use --stdin to avoid shell quoting issues
agent-browser eval --stdin <<'EVALEOF'
JSON.stringify(Array.from(document.querySelectorAll("a")).map(a => a.href))
EVALEOF
Cleanup
Always close sessions when done:
agent-browser close
agent-browser --session s1 close
자주 묻는 질문
먼저 무엇을 설치해야 하나요?
agent-browser 명령줄 도구와 Chromium입니다. 스킬은 시작하기 전에 도구가 있는지 확인합니다.
에이전트가 도구를 대신 설치해 주나요?
아닙니다. 도구가 없으면 작업 중에 설치하지 않고, 도구가 필요하다고 알려 줍니다.
에이전트가 왜 계속 페이지를 다시 보나요?
클릭이나 페이지 변경 후에는 요소 참조가 무효가 되므로, 다음 단계 전에 페이지를 다시 읽습니다.
상세 정보
작성자의 원본 설명
Browser automation via agent-browser CLI. Use when the user needs to navigate websites, fill forms, click buttons, take screenshots, extract data, or test web apps.
repo: sipeed/picoclaw
인기도
- GitHub 스타
- 30k
- 순위
- #9355
- 라이선스
- MIT
- 업데이트
- 2026. 10. 30.
댓글
- …
이 저장소의 다른 스킬
hardware
30k에이전트가 Sipeed 보드에서 I2C와 SPI 연결을 통해 센서를 읽고 디스플레이 같은 작은 장치를 제어하도록 돕습니다.
picoclaw-agent
30k에이전트가 채팅 게이트웨이와 예약 작업을 갖춘 가벼운 개인 AI 어시스턴트 PicoClaw를 설정하고, 구성하고, 문제를 해결하도록 돕습니다.
summarize
30k에이전트가 웹 페이지, 로컬 파일, YouTube 영상을 요약하거나, 이용 가능한 경우 대본을 추출하도록 돕습니다.
weather
30k에이전트가 도시의 현재 날씨와 예보를 확인하고, 위치를 확인해 올바른 장소의 정보를 얻도록 돕습니다.