Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问clear审计提醒

agent-browserAgent 浏览器自动化

Agent Skill

agent-browser 用于处理浏览器自动化、网页检查和页面信息提取,适合在 Codex、Claude、Cursor、Gemini CLI 中需要让 Agent 打开页面、读取网页或验证前端流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,420

周安装

58

GitHub Stars

347

下载量

455
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agent-browser(Agent 浏览器自动化)
来源仓库:https://github.com/teachingai/full-stack-skills
仓库路径:skills/agent-browser
安装命令:
npx skills add https://github.com/teachingai/full-stack-skills --skill agent-browser
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/teachingai/full-stack-skills --skill agent-browser

简介

用于处理浏览器自动化、网页检查和页面信息提取,适合让 Agent 打开页面或验证前端流程。

  • 它可帮助 Agent 读取网页内容或定位前端问题,提升调试效率。
  • 使用时建议结合具体仓库路径和原始 README 核验实际用法,确保权限可控。
  • 安装命令:npx skills add https://github.com/teachingai/full-stack-skills --skill agent-browser。
  • 安装前应确认是否会触发联网、命令执行或文件读写,避免安全风险。

SKILL.md

When to use this skill

Use this skill whenever the user wants to:

  • Automate browser interactions (click, fill, navigate, screenshot) via CLI
  • Scrape web content or extract data from pages
  • Build AI agent workflows that interact with websites
  • Use refs-based element selection for deterministic automation
  • Run browser automation in agent mode with JSON output
  • Manage authenticated sessions with custom headers or CDP

How to use this skill

This skill is organized to match the agent-browser official documentation structure (https://github.com/vercel-labs/agent-browser/blob/main/README.md). When working with agent-browser:

Quick-Start Example: Snapshot → Identify → Interact

# 1. Install
npm install -g @anthropic-ai/agent-browser

# 2. Open a page and take a snapshot to get element refs
agent-browser open "https://example.com"
agent-browser snapshot
# Output includes refs like @e1, @e2, @e3 for each element

# 3. Click an element by ref
agent-browser click @e3

# 4. Fill a form field
agent-browser fill @e5 "hello@example.com"

# 5. Agent mode (JSON output for programmatic use)
agent-browser snapshot --json

Detailed Documentation

  1. Install agent-browser:

- Load examples/getting-started/installation.md for installation instructions

  1. Quick Start:

- Load examples/quick-start/quick-start.md for basic workflow examples

  1. Learn core commands:

- Load examples/commands/basic-commands.md for basic commands (open, click, fill, etc.) - Load examples/commands/advanced-commands.md for advanced commands (snapshot, eval, etc.) - Load examples/commands/get-info/ for information retrieval commands - Load examples/commands/check-state/ for state checking commands - Load examples/commands/find-elements/ for semantic locator commands - Load examples/commands/wait/ for wait commands - Load examples/commands/mouse-control/ for mouse control commands - Load examples/commands/browser-settings/ for browser configuration - Load examples/commands/cookies-storage/ for cookies and storage management - Load examples/commands/network/ for network interception - Load examples/commands/tabs-windows/ for tab and window management - Load examples/commands/frames/ for iframe handling - Load examples/commands/dialogs/ for dialog handling - Load examples/commands/debug/ for debugging commands - Load examples/commands/navigation/ for navigation commands - Load examples/commands/setup/ for setup commands

  1. Understand selectors:

- Load examples/selectors/refs.md for refs-based selection (@e1, @e2, etc.) - Load examples/selectors/traditional-selectors.md for CSS, XPath, and semantic locators

  1. Use agent mode:

- Load examples/agent-mode/introduction.md for agent mode overview - Load examples/agent-mode/optimal-workflow.md for optimal AI workflow - Load examples/agent-mode/integration.md for integrating with AI agents

  1. Advanced features:

- Load examples/advanced/sessions.md for session management - Load examples/advanced/headed-mode.md for debugging with visible browser - Load examples/advanced/authenticated-sessions.md for authentication via headers - Load examples/advanced/custom-executable.md for custom browser executable - Load examples/advanced/cdp-mode.md for Chrome DevTools Protocol integration - Load examples/advanced/streaming.md for browser viewport streaming - Load examples/advanced/architecture.md for architecture overview - Load examples/advanced/platforms.md for platform support - Load examples/advanced/usage-with-agents.md for AI agent integration patterns

  1. Configure options:

- Load examples/options/global-options.md for global CLI options - Load examples/options/snapshot-options.md for snapshot-specific options - Load examples/options/session-options.md for session management options

  1. Reference API documentation when needed:

- api/commands.md - Complete command reference - api/selectors.md - Selector reference - api/options.md - Options reference

  1. Use templates for quick start:

- templates/basic-automation.md - Basic automation workflow - templates/ai-agent-workflow.md - AI agent workflow template

Doc mapping (one-to-one with official documentation)

Examples and Templates

This skill includes detailed examples organized to match the official documentation structure. All examples are in the examples/ directory (see mapping above).

To use examples:

  • Identify the topic from the user's request
  • Load the appropriate example file from the mapping above
  • Follow the instructions, syntax, and best practices in that file
  • Adapt the code examples to your specific use case

To use templates:

  • Reference templates in templates/ directory for common scaffolding
  • Adapt templates to your specific needs and coding style

API Reference

  • Commands API: api/commands.md - Complete command reference with syntax and examples
  • Selectors API: api/selectors.md - Selector types and usage reference
  • Options API: api/options.md - All options reference

Best Practices

  1. Use Refs: Prefer refs (@e1, @e2) over traditional selectors for deterministic automation
  2. Snapshot First: Always snapshot before interacting with elements to get refs
  3. Agent Mode: Use --json flag for machine-readable output in agent mode
  4. Session Management: Use --session to maintain state across commands
  5. Interactive Snapshot: Use -i flag for interactive snapshot selection
  6. Semantic Locators: Use semantic locators (role/name) when refs are not available
  7. Error Handling: Check command exit codes and error messages
  8. Wait for Navigation: Commands automatically wait for navigation to complete
  9. Headed Mode: Use --headed for debugging, headless for production
  10. CDP Integration: Use --cdp for Chrome DevTools Protocol integration
  11. Streaming: Use AGENT_BROWSER_STREAM_PORT for live browser preview
  12. Authenticated Sessions: Use --headers for authentication without login flows
  13. Custom Executable: Use --executable-path for serverless deployments or custom browsers
  14. Snapshot Options: Combine -i, -c, -d, -s options to optimize snapshot output

Resources

Keywords

agent-browser, CLI browser automation, AI agents, browser automation CLI, refs, snapshot, agent mode, semantic locators, browser automation tool, command-line browser, AI agent browser, deterministic selectors, accessibility tree, browser commands, web automation CLI, sessions, headed mode, authenticated sessions, CDP mode, streaming, Chrome DevTools Protocol, Playwright, browser automation for AI

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.05%
按下载量换算137

Antigravity

20.98%
按下载量换算95

Gemini CLI

16.39%
按下载量换算75

OpenCode

11.05%
按下载量换算50

trae

7.02%
按下载量换算32

Codex

3.11%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills