bodietron

Agent Browser

AI 智能体v1.0.0
作者:bodietron更新于 2026-05-18openclaw-agent-browser@clawhub_bodietron/openclaw-agent-browser
任务自动化工具调用#Browser Automation

据 AlphaMoat 统计,截至 2026-10,Agent Browser 累计下载 20,442 次、获 3 个星标,按累计下载量在本次参与排名的 10,914 个 AI 技能中排名第 1,378 位,在「AI 智能体」分类(1,632 个)中排名第 192 位。

列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。

累计下载
2.0万
星标
3
全站下载量排名
#1,378
全站前 13% · 「AI 智能体」前 12%
平台累计下载星标评论
ClawHub ↗1.9万3-
SkillHub ↗2.0万3—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

该技能通过 agent-browser CLI 让代理导航网页、填写表单、点击按钮、截图、提取数据、抓取与测试 Web 应用。核心流程为打开页面、快照获取元素引用、按引用交互后重新快照。它支持登录状态保存、会话复用与可选的安全环境变量(内容边界、域名白名单、输出上限),安装需先运行 setup 脚本并具备 Node.js 环境。 浏览器操作依赖运行环境、权限和页面状态;先核对目标,在提交重要表单或更改账户前进行确认。

资料发布于 2026-10-27

可以用来做什么

  • 自动导航网页并填写表单提交
  • 对 Web 应用进行自动化测试与截图
  • 从页面提取数据或下载文件

什么时候用

  • 需要代理以编程方式与网站交互时
  • 需要对网页应用做自动化测试或抓取时
  • 需要登录状态复用或会话隔离时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

打开这个网址并帮我填写登录表单
对这个 Web 应用做一次自动化测试并截图
从产品页面提取文本并保存

月度数据趋势

累计下载2.0万
5,4151.3万2.2万2026-03 · 累计下载 6,5282026-05 · 累计下载 1.3万2026-07 · 累计下载 1.8万2026-08 · 累计下载 1.8万2026-09 · 累计下载 1.9万2026-10 · 累计下载 2.0万26-0326-0926-10
星标3
2332026-03 · 星标 22026-05 · 星标 32026-07 · 星标 32026-08 · 星标 32026-09 · 星标 32026-10 · 星标 326-0326-0926-10

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-102.0万—3
2026-091.9万—3
2026-081.8万+4.3%3
2026-071.8万—3
2026-051.3万—3
2026-036,528—2

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

4.1 KB · ClawHub v1.0.0
---
name: agent-browser
description: Headless browser automation CLI for AI agents. Use when interacting with websites — navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, scraping, testing web apps, downloading files, or automating any browser task. Triggers on requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data", "test this web app", "login to a site", "monitor a page", or any task requiring programmatic web interaction.
---

# Browser Automation with agent-browser

## Setup

Run `scripts/setup.sh` to install agent-browser and Chromium. Requires Node.js.
展开全部(共 145 行)

## Core Workflow

Every browser automation follows this pattern:

1. **Navigate**: `agent-browser open <url>`
2. **Snapshot**: `agent-browser snapshot -i` (get element refs like `@e1`, `@e2`)
3. **Interact**: Use refs to click, fill, select
4. **Re-snapshot**: After navigation or DOM changes, get fresh refs

```bash
agent-browser open https://example.com/form
agent-browser snapshot -i
# Output: @e1 [input type="email"], @e2 [input type="password"], @e3 [button] "Submit"

agent-browser fill @e1 "[email protected]"
agent-browser fill @e2 "password123"
agent-browser click @e3
agent-browser wait --load networkidle
agent-browser snapshot -i  # Check result
```

## Command Chaining

Chain with `&&` when you don't need intermediate output:

```bash
agent-browser open https://example.com && agent-browser wait --load networkidle && agent-browser snapshot -i
```

Run separately when you need to parse output first (e.g., snapshot to discover refs).

## Essential Commands

```bash
# Navigate
agent-browser open <url>
agent-browser close

# See the page (always do this first)
agent-browser snapshot -i              # Interactive elements with refs
agent-browser snapshot -i -C           # Include onclick divs

# Interact using @refs
agent-browser click @e1
agent-browser fill @e2 "text"
agent-browser select @e1 "option"
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                 # For element
agent-browser wait --load networkidle  # For network idle

# Capture
agent-browser screenshot page.png
agent-browser screenshot --full        # Full page
agent-browser pdf output.pdf
```

For the full command reference, see `references/commands.md`.

## Ref Lifecycle (Important)

Refs (`@e1`, `@e2`) are invalidated when the page changes. Always re-snapshot after:
- Clicking links/buttons that navigate
- Form submissions
- Dynamic content loading (dropdowns, modals)

## Common Patterns

### Form Submission
```bash
agent-browser open https://example.com/signup
agent-browser snapshot -i
agent-browser fill @e1 "Jane Doe"
agent-browser fill @e2 "[email protected]"
agent-browser select @e3 "California"
agent-browser click @e5
agent-browser wait --load networkidle
```

### Login with State Persistence
```bash
agent-browser open https://app.example.com/login
agent-browser snapshot -i
agent-browser fill @e1 "$USERNAME" && agent-browser fill @e2 "$PASSWORD"
agent-browser click @e3
agent-browser wait --url "**/dashboard"
agent-browser state save auth.json

# Reuse later
agent-browser state load auth.json
agent-browser open https://app.example.com/dashboard
```

### Data Extraction
```bash
agent-browser open https://example.com/products
agent-browser snapshot -i
agent-browser get text @e5
agent-browser get text body > page.txt
```

### Screenshot & Diff
```bash
agent-browser screenshot baseline.png
# ... changes happen ...
agent-browser diff screenshot --baseline baseline.png
```

### Parallel Sessions
```bash
agent-browser --session site1 open https://site-a.com
agent-browser --session site2 open https://site-b.com
agent-browser session list
```

## Security (Optional)

```bash
export AGENT_BROWSER_CONTENT_BOUNDARIES=1          # Wrap output for AI safety
export AGENT_BROWSER_ALLOWED_DOMAINS="example.com"  # Domain allowlist
export AGENT_BROWSER_MAX_OUTPUT=50000               # Prevent context flooding
```

## Cleanup

Always close sessions when done: `agent-browser close`

「AI 智能体」分类下的热门技能

数据月份:2026-10 · 下载/星标数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。