browserwing-executor
它能做什么
它为 AI 智能体提供通过 HTTP 控制正在运行的浏览器的命令。适用于希望智能体一步步完成网页任务的人。
适用场景
- ✓当你想让智能体打开页面,然后在上面点击、输入或选择时。
- ✓当你需要从网页中提取文字或数值时。
- ✓当你想截图,或按顺序运行一批步骤时。
技能链接
https://github.com/MemTensor/MemOS/blob/main/apps/memos-local-openclaw/skill/browserwing-executor/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我打开价格页面,读取套餐名称和价格,并截一张图。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会先向 API 请求命令列表,然后读取页面的无障碍快照。接着,它会对找到的元素执行点击或提取等操作。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
BrowserWing Executor API
Overview
BrowserWing Executor provides comprehensive browser automation capabilities through HTTP APIs. You can control browser navigation, interact with page elements, extract data, and analyze page structure.
API Base URL: http://localhost:8080/api/v1/executor
Authentication: Use X-BrowserWing-Key: <api-key> header or Authorization: Bearer <token>
Core Capabilities
- Page Navigation: Navigate to URLs, go back/forward, reload
- Element Interaction: Click, type, select, hover on page elements
- Data Extraction: Extract text, attributes, values from elements
- Accessibility Analysis: Get accessibility snapshot to understand page structure
- Advanced Operations: Screenshot, JavaScript execution, keyboard input
- Batch Processing: Execute multiple operations in sequence
API Endpoints
1. Discover Available Commands
IMPORTANT: Always call this endpoint first to see all available commands and their parameters.
curl -X GET 'http://localhost:8080/api/v1/executor/help'
Response: Returns complete list of all commands with parameters, examples, and usage guidelines.
Query specific command:
curl -X GET 'http://localhost:8080/api/v1/executor/help?command=extract'
2. Get Accessibility Snapshot
CRITICAL: Always call this after navigation to understand page structure and get element RefIDs.
curl -X GET 'http://localhost:8080/api/v1/executor/snapshot'
Response Example:
{
"success": true,
"snapshot_text": "Clickable Elements:\n @e1 Login (role: button)\n @e2 Sign Up (role: link)\n\nInput Elements:\n @e3 Email (role: textbox) [placeholder: your@email.com]\n @e4 Password (role: textbox)"
}
Use Cases:
- Understand what interactive elements are on the page
- Get element RefIDs (@e1, @e2, etc.) for precise identification
- See element labels, roles, and attributes
- The accessibility tree is cleaner than raw DOM and better for LLMs
- RefIDs are stable references that work reliably across page changes
3. Common Operations
Navigate to URL
curl -X POST 'http://localhost:8080/api/v1/executor/navigate' \
-H 'Content-Type: application/json' \
-d '{"url": "https://example.com"}'
Click Element
curl -X POST 'http://localhost:8080/api/v1/executor/click' \
-H 'Content-Type: application/json' \
-d '{"identifier": "@e1"}'
Identifier formats:
- RefID (Recommended):
@e1,@e2(from snapshot) - CSS Selector:
#button-id,.class-name - XPath:
//button[@type='submit'] - Text:
Login(text content)
Type Text
curl -X POST 'http://localhost:8080/api/v1/executor/type' \
-H 'Content-Type: application/json' \
-d '{"identifier": "@e3", "text": "user@example.com"}'
Extract Data
curl -X POST 'http://localhost:8080/api/v1/executor/extract' \
-H 'Content-Type: application/json' \
-d '{
"selector": ".product-item",
"fields": ["text", "href"],
"multiple": true
}'
Wait for Element
curl -X POST 'http://localhost:8080/api/v1/executor/wait' \
-H 'Content-Type: application/json' \
-d '{"identifier": ".loading", "state": "hidden", "timeout": 10}'
Batch Operations
curl -X POST 'http://localhost:8080/api/v1/executor/batch' \
-H 'Content-Type: application/json' \
-d '{
"operations": [
{"type": "navigate", "params": {"url": "https://example.com"}, "stop_on_error": true},
{"type": "click", "params": {"identifier": "@e1"}, "stop_on_error": true},
{"type": "type", "params": {"identifier": "@e3", "text": "query"}, "stop_on_error": true}
]
}'
Instructions
Step-by-step workflow:
Discover commands: Call
GET /helpto see all available operations and their parameters (do this first if unsure).Navigate: Use
POST /navigateto open the target webpage.Analyze page: Call
GET /snapshotto understand page structure and get element RefIDs.Interact: Use element RefIDs (like
@e1,@e2) or CSS selectors to:- Click elements:
POST /click - Input text:
POST /type - Select options:
POST /select - Wait for elements:
POST /wait
- Click elements:
Extract data: Use
POST /extractto get information from the page.Present results: Format and show extracted data to the user.
Complete Example
User Request: "Search for 'laptop' on example.com and get
常见问题
智能体需要先获取命令列表吗?
需要。该技能说明要先调用帮助端点,查看所有可用命令及其参数。
它如何登录 API?
请求使用请求头中的 API 密钥或 Bearer 令牌。
它能同时执行多个操作吗?
可以。它支持批处理,按顺序运行多个操作。
详情
作者的原始描述
Control browser automation through HTTP API. Supports page navigation, element interaction (click, type, select), data extraction, accessibility snapshot analysis, screenshot, JavaScript execution, and batch operations.
repo: MemTensor/MemOS
热度
- GitHub 星标
- 12k
- 排名
- #11399
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
memos-local
12k帮你的智能体安装并设置 MemOS,这是 OpenClaw 的本地记忆插件,让它能记住你设备上的过往对话。
browserwing-admin
12k帮你的智能体安装和管理 BrowserWing 浏览器自动化工具,包括创建、运行和修复自动化脚本。
memos-memory-guide
12k教你的智能体在你提到过去的对话、你的偏好或过去的决定时,搜索你的历史对话和共享的团队记忆。
ask-user-question
12k让你的智能体在应用中打开一个提问框,在继续执行任务前询问你的选择、偏好或批准。