# Browser Automation

> 浏览器自动化操作 - 打开网页、截图、提取内容、填表等

- **Type:** Skill
- **Install:** `agentstack add skill-baizeagent-baize-browser-automation`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [BaiZeAgent](https://agentstack.voostack.com/s/baizeagent)
- **Installs:** 0
- **Category:** [Web & Browser](https://agentstack.voostack.com/c/web-and-browser)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [BaiZeAgent](https://github.com/BaiZeAgent)
- **Source:** https://github.com/BaiZeAgent/Baize/tree/main/skills/browser-automation

## Install

```sh
agentstack add skill-baizeagent-baize-browser-automation
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 浏览器自动化技能

## 功能说明

这个技能可以让白泽控制浏览器执行各种自动化操作，包括：

### 支持的操作

1. **open** - 打开网页
   - 参数：url（必需）
   - 示例：打开百度、打开新闻网站

2. **screenshot** - 网页截图
   - 参数：screenshot_path（可选，默认 ./screenshot.png）
   - 保存当前页面的截图

3. **extract** - 提取内容
   - 参数：selector（CSS选择器）
   - 提取指定元素的文本内容

4. **fill** - 填写表单
   - 参数：selector, value
   - 在指定输入框中填入内容

5. **click** - 点击元素
   - 参数：selector
   - 点击页面上的按钮或链接

6. **scroll** - 滚动页面
   - 参数：value（"top", "bottom", 或像素值）

7. **wait** - 等待
   - 参数：waitTime（毫秒）
   - 等待指定时间

8. **search** - 搜索
   - 参数：value（搜索关键词）
   - 在搜索引擎中搜索

## 使用场景

- 打开指定网页查看内容
- 自动填写表单
- 提取网页信息
- 网页截图保存
- 自动化测试

## 注意事项

- 需要安装 Playwright：`npm install playwright`
- 首次使用需要安装浏览器：`npx playwright install chromium`
- 某些网站可能有反爬虫机制

## 安装命令

```bash
npm install playwright
npx playwright install chromium
```

## 示例用法

```bash
# 打开网页
baize chat "打开百度首页"

# 搜索内容
baize chat "在百度搜索 人工智能"

# 截图
baize chat "给当前网页截图"

# 提取内容
baize chat "提取网页标题"
```

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [BaiZeAgent](https://github.com/BaiZeAgent)
- **Source:** [BaiZeAgent/Baize](https://github.com/BaiZeAgent/Baize)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-baizeagent-baize-browser-automation
- Seller: https://agentstack.voostack.com/s/baizeagent
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
