agent-browser
使用 AI Agent 自動化網頁瀏覽
こちらからも入手できます: inference-sh-9,inference-sh-8,inferencesh,inf-sh,vercel-labs,inference-sh-0
自動化網頁互動,如表單填寫、資料擷取和測試,無需手動控制瀏覽器。此技能透過簡單的元素參照系統為 AI Agent 提供瀏覽器自動化功能,消除對複雜選擇器或 XPath 查詢的需求。
スキルZIPをダウンロード
Claudeでアップロード
設定 → 機能 → スキル → スキルをアップロードへ移動
オンにして利用開始
テストする
「agent-browser」を使用しています。 Open https://example.com and show me interactive elements
期待される結果:
Session created: abc123
Interactive elements:
@e1 [a] 'Home' href='/'
@e2 [input type='text'] placeholder='Search'
@e3 [button] 'Submit'
Screenshot saved to: /tmp/screenshot.png
「agent-browser」を使用しています。 Click the search button and wait for results
期待される結果:
Action completed: clicked @e3
Waiting for page load...
Snapshot updated: 5 new elements found
Current URL: https://example.com/search?q=test
「agent-browser」を使用しています。 Extract all headlines from the page
期待される結果:
Executing JavaScript: document.querySelectorAll('h2').map(h => h.textContent)
Result: ['Introduction', 'Features', 'Pricing', 'Contact']
Screenshot saved
セキュリティ監査
安全All 606 static findings are false positives. The skill contains only documentation (markdown files) and template shell scripts. The external_commands findings are code examples in markdown showing users how to use the infsh CLI tool. The network findings are example URLs in documentation. The filesystem findings are example file paths. The skill itself does not execute any commands - it provides documentation for a third-party CLI tool (inference.sh). Users execute the commands themselves, not the skill.
リスク要因
⚙️ 外部コマンド (3)
🌐 ネットワークアクセス (2)
📁 ファイルシステムへのアクセス (2)
品質スコア
作れるもの
自動化表單測試
QA 工程師可以跨多個瀏覽器自動化表單提交工作流程,測試驗證邏輯和錯誤處理,無需手動點擊
從網頁應用程式擷取資料
研究人員可以從需要登入的網頁應用程式中擷取結構化資料,透過已驗證的作業階段導航以抓取報告或儀表板
回歸測試
開發人員可以建立可重現的瀏覽器自動化腳本,在程式碼變更後驗證關鍵的使用者流程,如結帳流程或帳戶註冊
これらのプロンプトを試す
Open https://example.com and show me all interactive elements on the page
Fill in the login form with username 'user@example.com' and password 'secret123', then click the submit button
Navigate to https://example.com/data and execute JavaScript to extract all product names and prices into a structured format
Open a browser session with video recording enabled, navigate through the checkout flow, and save the video for debugging
ベストプラクティス
- 在��面導航後務必重新擷取快照以取得新的元素參照,因為當 DOM 變更時 @e 參照會失效
- 使用環境變數來儲存敏感憑證,而不是在自動化腳本中硬式編碼
- 完成時關���瀏覽器作業階段以釋放資源並擷取錄製的影片
- 在開發期間啟用影片錄製,然後在生產執行時停用以提升效能
回避
- 請勿在點擊連結或提交表單後重複使用元素參照 - 始終呼叫 snapshot 以取得新的參照
- 避免長時間的作業階段持續時間而沒有活動 - 作業階段可能逾時並遺失��態
- 絕不要在使用此技能的自動化腳本中提交憑證或 API 金鑰
- 請勿在元素於檢視區中可見之前嘗試與其互動