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エージェントが、都市の現在の天気と予報を確認し、同じ名前の別の都市と取り違えないよう場所を確かめられるよう支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。