Compétences agent-browser
🌐

agent-browser

Risque moyen ⚙️ Commandes externes🌐 Accès réseau📁 Accès au système de fichiers

為 AI 代理自動化網頁瀏覽器

Également disponible depuis: inference-sh-9,inferen-sh,inf-sh,toolshell,inference-sh-8,inferencesh,skillssh,inference-sh-0,supercent-io,tul-sh,vercel-labs

AI 代理需要與網站互動,但缺乏原生瀏覽器存取權限。此技能提供基於 Playwright 的瀏覽器自動化功能,透過 inference.sh 實現,可進行導航、元素互動、螢幕截圖和影片錄製,並支援複雜多步驟工作流程的會話管理。

Prend en charge: Claude Codex Code(CC)
⚠️ 62 Médiocre
1

Télécharger le ZIP du skill

2

Importer dans Claude

Allez dans Paramètres → Capacités → Skills → Importer un skill

3

Activez et commencez à utiliser

Tester

Utilisation de "agent-browser". Navigate to example.com and show available elements

Résultat attendu:

Session created: sess_abc123. Page loaded successfully. Available elements: @e1 [h1] 'Example Domain', @e2 [p] 'This domain is for use in documentation', @e3 [a] 'Learn more' href='https://iana.org/domains/example'

Utilisation de "agent-browser". Fill form and submit

Résultat attendu:

Element @e1 filled with 'test@example.com'. Element @e2 filled with 'password'. Element @e3 clicked. Page navigated to /dashboard. Session remains active.

Utilisation de "agent-browser". Take screenshot of current page

Résultat attendu:

Screenshot captured: screenshot_20260312_082145.png (1920x1080). Image saved to /tmp/browser-sessions/sess_abc123/screenshots/. Base64 preview available in response.

Audit de sécurité

Risque moyen
v1 • 3/12/2026

Static analyzer flagged 606 patterns across 10 files (2313 lines). Most findings are false positives: external_commands are documentation examples showing CLI usage, network patterns are example URLs, filesystem patterns are markdown relative links. The skill legitimately requires Bash permissions for inference.sh CLI, network access for browser automation, and filesystem access for screenshots/videos. No malicious intent detected. Users should understand the powerful capabilities this skill provides.

10
Fichiers analysés
2,313
Lignes analysées
8
résultats
1
Total des audits
Problèmes à risque moyen (3)
Extensive External Command Usage
The skill uses Bash(infsh *) permission extensively for browser automation via inference.sh CLI. While this is the intended functionality, users should understand this grants significant system access.
Browser Credential and Cookie Access
The skill can access browser cookies and storage via JavaScript execution. This is required for authenticated browsing but could expose session tokens if misused.
Screen Capture and Video Recording
The skill can capture screenshots and record video of browser sessions. This capability could capture sensitive information displayed during automation.
Problèmes à risque faible (2)
Hardcoded Example URLs in Documentation
Documentation contains example URLs (example.com, inference.sh). These are documentation examples, not malicious endpoints.
SOCKS Proxy Configuration Support
The skill supports SOCKS proxy configuration for browser traffic routing. This is a legitimate privacy/networking feature.
Audité par: claude

Score de qualité

45
Architecture
100
Maintenabilité
87
Contenu
22
Communauté
46
Sécurité
91
Conformité aux spécifications

Ce que vous pouvez construire

網頁爬蟲與資料擷取

從需要 JavaScript 渲染或使用者互動的網站擷取結構化資料,例如儀表板、動態內容或沒有公開 API 的網站。

自動化測試與品質保證

透過自動化使用者工作流程、表單提交、導航路徑及螢幕截圖視覺驗證來測試網頁應用程式。

代理程式研究與資訊收集

使 AI 代理能夠瀏覽網站、閱讀文件、檢查產品庫存、監控價格或從網路來源收集資訊。

Essayez ces prompts

基本頁面導航
開啟瀏覽器會話並導航至 https://example.com。顯示頁面上有哪些互動式元素。
表單自動化
建立瀏覽器會話以填寫 https://example.com/contact 的聯絡表單。找到名稱、郵件和訊息欄位,填入測試資料並提交表單。提交後拍攝螢幕截圖。
已驗證資料擷取
開始錄製瀏覽器會話。使用環境變數中的憑證登入 https://app.example.com。導航至儀表板,擷取表格中顯示的所有指標,然後關閉會話並返回影片。
複雜多頁面工作流程
使用 SOCKS 代理建立瀏覽器會話。在電子商務網站上搜尋產品,按價格範圍篩選,依序開啟前三個產品頁面,從每個頁面擷取產品詳情,然後編譯比較摘要。錄製整個工作流程。

Bonnes pratiques

  • 完成後務必關閉會話以釋放資源,若有啟用影片錄製也可擷取錄影
  • 使用環境變數儲存憑證,而非將其直接寫入自動化腳本中
  • 在進行任何導航或 DOM 修改操作後拍攝快照,以取得最新的元素參考
  • 與動態載入的元素互動前,使用等待動作或明確條件

Éviter

  • 請勿將憑證直接寫入自動化腳本或提示中
  • 請勿假設元素參考在頁面導航後會持續存在 - 務必重新拍攝快照
  • 請勿讓會話無限期執行 - 實作逾時和清理邏輯
  • 請勿用於繞過安全措施、CAPTCHA 或未經授權存取受保護資源

Foire aux questions

使用此技能前需要安裝什麼?
您需要 inference.sh CLI(infsh)。執行 'npx skills add inference-sh/skills@agent-tools' 取得安裝說明,然後使用 'infsh login' 進行驗證。
元素參考(@e1、@e2)如何運作?
當您開啟頁面或呼叫 snapshot 時,技能會傳回包含 @e 參考的互動式元素清單。在互動命令(如 click 或 fill)中使用這些參考。當 DOM 變更時,參考會失效。
此技能能否處理登入和已驗證的會話?
可以。會話會跨函數呼叫持續保存 Cookie 和 localStorage。填寫登入表單並提交後,該會話中的後續動作都會保持已驗證狀態。如需 OAuth 和 2FA 模式,請參閱 authentication.md。
影片錄製如何運作?
在 open 函數輸入中加入 'record_video': true 即可啟用影片錄製。影片會在整個會話期間錄製,並在您呼叫 close 函數時傳回。影片僅在會話關閉前可用。
此技能能否使用代理伺服器?
可以。在 open 函數輸入中加入 'proxy': {'server': 'http://proxy.example.com:8080'},或使用 SOCKS 加入 'proxy': {'server': 'socks5://proxy.example.com:1080'}。詳情請參閱 proxy-support.md。
如果忘記關閉會話會發生什麼事?
會話會消耗伺服器資源。雖然可能有自動清理,但完成後務必明確呼叫 close。未關閉的會話可能會逾時,但這點無法保證。