agent-browser
하는 일
이 에이전트는 웹 브라우저처럼 인터넷을 둘러볼 수 있습니다. 웹사이트를 열고, 버튼을 클릭하고, 양식을 채우고, 스크린샷을 찍고, 웹페이지에서 정보를 추출할 수 있습니다.
사용하는 경우
- ✓특정 주제에 관한 정보를 조사할 때.
- ✓온라인 양식을 자동으로 채워야 할 때.
- ✓웹사이트의 표에서 데이터를 추출해야 할 때.
스킬 링크
https://github.com/nanocoai/nanoclaw/blob/main/container/skills/agent-browser/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“인공지능의 역사를 조사하고, 가장 중요한 이정표 3가지를 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 에이전트는 웹사이트를 열고, 화면의 요소(버튼이나 입력란 등)를 분석한 뒤, 간단한 명령으로 이를 조작할 수 있게 합니다. 자주 쓰는 사이트는 로그인 상태도 저장할 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Browser Automation with agent-browser
Quick start
agent-browser open <url> # Navigate to page
agent-browser snapshot -i # Get interactive elements with refs
agent-browser click @e1 # Click element by ref
agent-browser fill @e2 "text" # Fill input by ref
agent-browser close # Close browser
Core workflow
- Navigate:
agent-browser open <url> - Snapshot:
agent-browser snapshot -i(returns elements with refs like@e1,@e2) - Interact using refs from the snapshot
- Re-snapshot after navigation or significant DOM changes
Commands
Navigation
agent-browser open <url> # Navigate to URL
agent-browser back # Go back
agent-browser forward # Go forward
agent-browser reload # Reload page
agent-browser close # Close browser
Snapshot (page analysis)
agent-browser snapshot # Full accessibility tree
agent-browser snapshot -i # Interactive elements only (recommended)
agent-browser snapshot -c # Compact output
agent-browser snapshot -d 3 # Limit depth to 3
agent-browser snapshot -s "#main" # Scope to CSS selector
Interactions (use @refs from snapshot)
agent-browser click @e1 # Click
agent-browser dblclick @e1 # Double-click
agent-browser fill @e2 "text" # Clear and type
agent-browser type @e2 "text" # Type without clearing
agent-browser press Enter # Press key
agent-browser hover @e1 # Hover
agent-browser check @e1 # Check checkbox
agent-browser uncheck @e1 # Uncheck checkbox
agent-browser select @e1 "value" # Select dropdown option
agent-browser scroll down 500 # Scroll page
agent-browser upload @e1 file.pdf # Upload files
Get information
agent-browser get text @e1 # Get element text
agent-browser get html @e1 # Get innerHTML
agent-browser get value @e1 # Get input value
agent-browser get attr @e1 href # Get attribute
agent-browser get title # Get page title
agent-browser get url # Get current URL
agent-browser get count ".item" # Count matching elements
Screenshots & PDF
agent-browser screenshot # Save to temp directory
agent-browser screenshot path.png # Save to specific path
agent-browser screenshot --full # Full page
agent-browser pdf output.pdf # Save as PDF
Wait
agent-browser wait @e1 # Wait for element
agent-browser wait 2000 # Wait milliseconds
agent-browser wait --text "Success" # Wait for text
agent-browser wait --url "**/dashboard" # Wait for URL pattern
agent-browser wait --load networkidle # Wait for network idle
Waiting for a custom condition — ALWAYS bound it
Prefer the built-in wait subcommands above. Only fall back to eval-polling
when you must wait on a custom JS condition (e.g. a spinner disappearing or a
"Send" button re-enabling in a chat UI).
Never write an unbounded wait loop. A bare until … do sleep; done that
polls a page condition will loop forever if the condition never becomes true
(page failed to load, selector changed, network stalled). That does not just
fail the command — it wedges the entire agent turn: the runner keeps the model
stream open, later messages get silently swallowed, and the container can hang
for hours without the host's stuck-detection firing.
Always cap the wait with BOTH a wall-clock timeout and a max-attempts counter,
and always exit the loop (never leave a sleep loop as the last thing running):
# Bounded wait: succeeds when the condition is met, gives up after ~90s.
timeout 90 bash -c '
for i in $(seq 1 30); do
if agent-browser eval "document.querySelector(\".loading\") === null" 2>/dev/null | grep -q true; then
echo READY; exit 0
fi
sleep 3
done
echo TIMEOUT; exit 1
'
# Check the exit status / output: on TIMEOUT, snapshot the page and decide —
# do NOT re-enter another unbounded wait.
If the wait times out, treat it as a real failure: take a snapshot -i or
screenshot to see the actual page state, report what you found, and move on.
Retrying the same unbounded wait is what causes the hang.
Semantic locators (alternative to refs)
agent-browser find role button click --name "Submit"
agent-browser find text "Sign In" click
agent-browser find label "Email" fill "user@test.com"
…
자주 묻는 질문
에이전트는 어디를 클릭하고 무엇을 채울지 어떻게 아나요?
웹사이트를 연 뒤, 에이전트가 화면을 사진으로 찍듯 살펴보고 클릭하거나 입력할 수 있는 요소를 찾아냅니다. 그리고 @e1, @e2 같은 코드를 붙여 명령에서 사용할 수 있게 합니다.
온라인 쇼핑에도 쓸 수 있나요?
네, 상점을 둘러보고 장바구니에 상품을 담으며, 웹사이트가 허용한다면 구매까지 할 수 있습니다.
비밀번호를 저장할 수 있나요?
웹사이트의 로그인 상태(쿠키와 인증 정보)를 저장할 수 있어, 그 사이트를 쓸 때마다 매번 로그인하지 않아도 됩니다.
상세 정보
작성자의 원본 설명
Browse the web for any task — research topics, read articles, interact with web apps, fill forms, take screenshots, extract data, and test web pages. Use whenever a browser would be useful, not just when the user explicitly asks.
repo: nanocoai/nanoclaw
인기도
- GitHub 스타
- 31k
- 순위
- #9328
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
frontend-engineer
31k에이전트가 좋은 개발 원칙에 따라 잘 작동하고 반응형이며 접근성 높은 웹사이트를 만들도록 돕습니다.
self-customize
31k에이전트가 스스로 적응하고 새 기능을 추가해, 새로운 것을 배우거나 작동 방식을 바꾸도록 돕습니다.
welcome
31k에이전트가 새 채널에서 자신을 소개하고 무엇을 할 수 있는지 설명하도록 합니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.