MCPInstall

browserwing-executor

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.

Installs
133
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/memtensor/memos --skill browserwing-executor
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads browserwing-executor automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

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 the first 5 results"

Your Actions:

  1. Navigate to search page:
curl -X POST 'http://localhost:8080/api/v1/executor/navigate' \
  -H 'Content-Type: application/json' \
  -d '{"url": "https://example.com/search"}'
  1. Get page structure to find search input:
curl -X GET 'http://localhost:8080/api/v1/executor/snapshot'

Response shows: @e3 Search (role: textbox) [placeholder: Search...]

  1. Type search query:
curl -X POST 'http://localhost:8080/api/v1/executor/type' \
  -H 'Content-Type: application/json' \
  -d '{"identifier": "@e3", "text": "laptop"}'
  1. Press Enter to submit:
curl -X POST 'http://localhost:8080/api/v1/executor/press-key' \
  -H 'Content-Type: application/json' \
  -d '{"key": "Enter"}'
  1. Wait for results to load:
curl -X POST 'http://localhost:8080/api/v1/executor/wait' \
  -H 'Content-Type: application/json' \
  -d '{"identifier": ".search-results", "state": "visible", "timeout": 10}'
  1. Extract search results:
curl -X POST 'http://localhost:8080/api/v1/executor/extract' \
  -H 'Content-Type: application/json' \
  -d '{
    "selector": ".result-item",
    "fields": ["text", "href"],
    "multiple": true
  }'
  1. Present the extracted data:
Found 15 results for 'laptop':
1. Gaming Laptop - $1299 (https://...)
2. Business Laptop - $899 (https://...)
...

Key Commands Reference

Navigation

  • POST /navigate - Navigate to URL
  • POST /go-back - Go back in history
  • POST /go-forward - Go forward in history
  • POST /reload - Reload current page

Element Interaction

  • POST /click - Click element (supports: RefID @e1, CSS selector, XPath, text content)
  • POST /type - Type text into input (supports: RefID @e3, CSS selector, XPath)
  • POST /select - Select dropdown option
  • POST /hover - Hover over element
  • POST /wait - Wait for element state (visible, hidden, enabled)
  • POST /press-key - Press keyboard key (Enter, Tab, Ctrl+S, etc.)

Data Extraction

  • POST /extract - Extract data from elements (supports multiple elements, custom fields)
  • POST /get-text - Get element text content
  • POST /get-value - Get input element value
  • GET /page-info - Get page URL and title
  • GET /page-text - Get all page text
  • GET /page-content - Get full HTML

Page Analysis

  • GET /snapshot - Get accessibility snapshot (⭐ ALWAYS call after navigation)
  • GET /clickable-elements - Get all clickable elements
  • GET /input-elements - Get all input elements

Advanced

  • POST /screenshot - Take page screenshot (base64 encoded)
  • POST /evaluate - Execute JavaScript code
  • POST /batch - Execute multiple operations in sequence
  • POST /scroll-to-bottom - Scroll to page bottom
  • POST /resize - Resize browser window
  • POST /tabs - Manage browser tabs (list, new, switch, close)
  • POST /fill-form - Intelligently fill multiple form fields at once

Debug & Monitoring

  • GET /console-messages - Get browser console messages (logs, warnings, errors)
  • GET /network-requests - Get network requests made by the page
  • POST /handle-dialog - Configure JavaScript dialog (alert, confirm, prompt) handling
  • POST /file-upload - Upload files to input elements
  • POST /drag - Drag and drop elements
  • POST /close-page - Close the current page/tab

Element Identification

You can identify elements using:

  1. RefID (Recommended): @e1, @e2, @e3

    • Most reliable method - stable across page changes
    • Get RefIDs from /snapshot endpoint
    • Valid for 5 minutes after snapshot
    • Example: "identifier": "@e1"
    • Works with multi-strategy fallback for robustness
  2. CSS Selector: #id, .class, button[type="submit"]

    • Standard CSS selectors
    • Example: "identifier": "#login-button"
  3. XPath: //button[@id='login'], //a[contains(text(), 'Submit')]

    • XPath expressions for complex queries
    • Example: "identifier": "//button[@id='login']"
  4. Text Content: Login, Sign Up, Submit

    • Searches buttons and links with matching text
    • Example: "identifier": "Login"
  5. ARIA Label: Elements with aria-label attribute

    • Automatically searched

Guidelines

Before starting:

  • Call GET /help if you're unsure about available commands or their parameters
  • Ensure browser is started (if not, it will auto-start on first operation)

During automation:

  • Always call /snapshot after navigation to get page structure and RefIDs
  • Prefer RefIDs (like @e1) over CSS selectors for reliability and stability
  • Re-snapshot after page changes to get updated RefIDs
  • Use /wait for dynamic content that loads asynchronously
  • Check element states before interaction (visible, enabled)
  • Use /batch for multiple sequential operations to improve efficiency

Error handling:

  • If operation fails, check element identifier and try different format
  • For timeout errors, increase timeout value
  • If element not found, call /snapshot again to refresh page structure
  • Explain errors clearly to user with suggested solutions

Data extraction:

  • Use fields parameter to specify what to extract: ["text", "href", "src"]
  • Set multiple: true to extract from multiple elements
  • Format extracted data in a readable way for user

Complete Workflow Example

Scenario: User wants to login to a website

User: "Please log in to example.com with username 'john' and password 'secret123'"

Your Actions:

Step 1: Navigate to login page

POST http://localhost:8080/api/v1/executor/navigate
{"url": "https://example.com/login"}

Step 2: Get page structure

GET http://localhost:8080/api/v1/executor/snapshot

Response:

Clickable Elements:
  @e1 Login (role: button)

Input Elements:
  @e2 Username (role: textbox)
  @e3 Password (role: textbox)

Step 3: Enter username

POST http://localhost:8080/api/v1/executor/type
{"identifier": "@e2", "text": "john"}

Step 4: Enter password

POST http://localhost:8080/api/v1/executor/type
{"identifier": "@e3", "text": "secret123"}

Step 5: Click login button

POST http://localhost:8080/api/v1/executor/click
{"identifier": "@e1"}

Step 6: Wait for login success (optional)

POST http://localhost:8080/api/v1/executor/wait
{"identifier": ".welcome-message", "state": "visible", "timeout": 10}

Step 7: Inform user

"Successfully logged in to example.com!"

Batch Operation Example

Scenario: Fill out a form with multiple fields

Instead of making 5 separate API calls, use one batch operation:

curl -X POST 'http://localhost:8080/api/v1/executor/batch' \
  -H 'Content-Type: application/json' \
  -d '{
    "operations": [
      {
        "type": "navigate",
        "params": {"url": "https://example.com/form"},
        "stop_on_error": true
      },
      {
        "type": "type",
        "params": {"identifier": "#name", "text": "John Doe"},
        "stop_on_error": true
      },
      {
        "type": "type",
        "params": {"identifier": "#email", "text": "john@example.com"},
        "stop_on_error": true
      },
      {
        "type": "select",
        "params": {"identifier": "#country", "value": "United States"},
        "stop_on_error": true
      },
      {
        "type": "click",
        "params": {"identifier": "#submit"},
        "stop_on_error": true
      }
    ]
  }'

Best Practices

  1. Discovery first: If unsure, call /help or /help?command=<name> to learn about commands
  2. Structure first: Always call /snapshot after navigation to understand the page
  3. Use accessibility indices: They're more reliable than CSS selectors (elements might have dynamic classes)
  4. Wait for dynamic content: Use /wait before interacting with elements that load asynchronously
  5. Batch when possible: Use /batch for multiple sequential operations
  6. Handle errors gracefully: Provide clear explanations and suggestions when operations fail
  7. Verify results: After operations, check if desired outcome was achieved

Common Scenarios

Form Filling

  1. Navigate to form page
  2. Get accessibility snapshot to find input elements and their RefIDs
  3. Use /type for each field: @e1, @e2, etc.
  4. Use /select for dropdowns
  5. Click submit button using its RefID

Data Scraping

  1. Navigate to target page
  2. Wait for content to load with /wait
  3. Use /extract with CSS selector and multiple: true
  4. Specify fields to extract: ["text", "href", "src"]

Search Operations

  1. Navigate to search page
  2. Get accessibility snapshot to locate search input
  3. Type search query into input
  4. Press Enter or click search button
  5. Wait for results
  6. Extract results data

Login Automation

  1. Navigate to login page
  2. Get accessibility snapshot to find RefIDs
  3. Type username: @e2
  4. Type password: @e3
  5. Click login button: @e1
  6. Wait for success indicator

Important Notes

  • Browser must be running (it will auto-start on first operation if needed)
  • Operations are executed on the currently active browser tab
  • Accessibility snapshot updates after each navigation and click operation
  • All timeouts are in seconds
  • Use wait_visible: true (default) for reliable element interaction
  • Replace localhost:8080 with actual API host address
  • Authentication required: use X-BrowserWing-Key header or JWT token

Troubleshooting

Element not found:

  • Call /snapshot to see available elements
  • Try different identifier format (accessibility index, CSS selector, text)
  • Check if page has finished loading

Timeout errors:

  • Increase timeout value in request
  • Check if element actually appears on page
  • Use /wait with appropriate state before interaction

Extraction returns empty:

  • Verify CSS selector matches target elements
  • Check if content has loaded (use /wait first)
  • Try different extraction fields or type

Quick Reference

# Discover commands
GET localhost:8080/api/v1/executor/help

# Navigate
POST localhost:8080/api/v1/executor/navigate {"url": "..."}

# Get page structure
GET localhost:8080/api/v1/executor/snapshot

# Click element
POST localhost:8080/api/v1/executor/click {"identifier": "@e1"}

# Type text
POST localhost:8080/api/v1/executor/type {"identifier": "@e3", "text": "..."}

# Extract data
POST localhost:8080/api/v1/executor/extract {"selector": "...", "fields": [...], "multiple": true}

Response Format

All operations return:

{
  "success": true,
  "message": "Operation description",
  "timestamp": "2026-01-15T10:30:00Z",
  "data": {
    // Operation-specific data
  }
}

Error response:

{
  "error": "error.operationFailed",
  "detail": "Detailed error message"
}

FAQ

What does the browserwing-executor skill do?

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.

How do I install browserwing-executor?

Run npx skills add https://github.com/memtensor/memos --skill browserwing-executor in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/browserwing-executor/ (personal) or .claude/skills/browserwing-executor/ (project).

Which AI agents can use browserwing-executor?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is browserwing-executor safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains browserwing-executor?

It is published by memtensor in memtensor/memos. It has 133 recorded installs.

More from memtensor/memos

View all →

memos-memory-guide

memtensor/memos

Open the skill to read its SKILL.md instructions.

294 installs

ask-user-question

memtensor/memos

Open the skill to read its SKILL.md instructions.

83 installs

memos-local

memtensor/memos

Open the skill to read its SKILL.md instructions.

65 installs

browserwing-admin

memtensor/memos

Open the skill to read its SKILL.md instructions.

61 installs

Popular productivity & automation skills

View category →

agent-browser

vercel-labs/agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

OfficialProductivity & Automation1.3M installs

lark-doc

open.feishu.cn

飞书云文档(Docx / Wiki)内容操作:读取、创建、编辑文档,插入或下载图片附件,以及操作思维笔记。用户提供文档 URL/token(包括 doubao.com 的 /docx/、/wiki/)时使用;按 URL 路径/token 而非域名路由;/page/ 是妙搭应用,非飞书云文档。文档内嵌资源按读取参考中的统一规则分流。独立评论操作走 lark-drive;随正文读取评论使用 docs +fetch。表格或 Base 内部数据操作不在本 skill。

lark-base

open.feishu.cn

飞书多维表格(Base)操作:建表、字段、记录、视图、统计、公式/lookup、表单、仪表盘、应用模式(BaseApp/AppMode 页面与组件)、Workspace 目录、workflow、角色权限、模板中心(多维表格模板分类/列表/搜索);遇到 Base/多维表格/bitable、BaseApp/AppMode、/base/ 或 /app/ 链接时使用。BaseApp 不走 lark-apps;文件导入/导出转 lark-drive,认证/授权转 lark-shared。

lark-drive

open.feishu.cn

飞书云空间(云盘/云存储):管理 Drive 文件和文件夹,包含上传/下载、创建文件夹、复制/移动/删除、查看元数据、查询权限设置、评论/权限/订阅、标题、版本、飞书文档密级标签(secure labels)和本地文件导入。用户需要整理云盘目录、处理云空间资源 URL/token、判断链接类型/真实 token/标题,或导入 Word/Markdown/Excel/CSV/PPTX/.base 为 docx/sheet/bitable/slides 时使用;doubao.com 云空间 URL/token 也按资源路径和 token 路由,不回退 WebFetch。不负责:文档内容编辑(走 lark-doc)、表格/Base 表内数据操作(走 lark-sheets/lark-base)、知识空间节点/成员管理(走 lark-wiki)、原生 Markdown 文件读写/patch/diff(走 lark-markdown)。

lark-shared

open.feishu.cn

Use for lark-cli setup/auth tasks: auth login/status/logout, user vs bot identity, business-domain permissions (--domain, including all/docs/drive), missing scopes, revoking authorization, or handling notice JSON.

lark-im

open.feishu.cn

飞书即时通讯:收发消息和管理群聊。发送和回复消息、搜索聊天记录、管理群聊成员、上传下载图片和文件、管理表情回复、发送应用内/短信/电话加急、发送和处理交互卡片(Interactive Card)、监听卡片按钮回调(card.action.trigger)。当用户需要发消息、查看或搜索聊天记录、下载聊天中的文件、查看群成员、搜索群、创建群聊或话题群、管理标记数据、管理 Feed 置顶(添加/移除/查询置顶会话)、管理标签数据、处理卡片回调时使用。