跳到正文
Skillpedia
测试12k · #11399

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/MemTensor/MemOS/blob/main/apps/memos-local-openclaw/skill/browserwing-executor/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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:

  1. Discover commands: Call GET /help to see all available operations and their parameters (do this first if unsure).

  2. Navigate: Use POST /navigate to open the target webpage.

  3. Analyze page: Call GET /snapshot to understand page structure and get element RefIDs.

  4. 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
  5. Extract data: Use POST /extract to get information from the page.

  6. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能