Home / opentiny / webmcp-sdk · packages/webmcp-cli-skill/cdp/SKILL.md · GitHub

webmcp-cli-cdp skillA

webmcp-cli-cdp is agent-read markdown (skill) from opentiny/webmcp-sdk: 面向第三方 AI Agent 的 CDP 直连模式执行指南:通过 Chrome DevTools Protocol 独立沙箱操作浏览器,自动注入 page-agent-tool 及领域工具。.

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# WebMCP CLI (CDP 直连模式) Skill

本 Skill 指导 AI Agent 如何通过 `@opentiny/webmcp-cli` 的 **CDP 模式**(Chrome DevTools Protocol 直连)操控浏览器。

## 适用场景与特征

- **独立沙箱**:自动在后台启动独立的 Chrome 实例(默认配置位于 `~/.webmcp_chrome_profile`),无需预先开启用户浏览器。
- **自动化与 CI 优先**:适合可重复的回归测试、批量网页内容提取、自动化脚本任务。
- **环境自动注入**:自动向目标网页注入 `webmcp-polyfill` 与内置的 `page-agent-tool`。
- **标识特征**:
  - 命令直接调用 `webmcp-cli <command>`(默认即 CDP 模式,无需额外参数);
  - Tab ID 格式为 **32 位 UUID 字符串**(Chrome Target ID);
  - 支持 CDP 专属的系统剪贴板操作(`clipboard`)。
  - **不复用**用户真实浏览器的登录态与 Cookie。

## 安装

当 shell 终端提示找不到工具时执行:

```bash
npm install -g @opentiny/webmcp-cli
```

---

## 命令集与规范

### 1. 管理浏览器标签页 `webmcp-cli tabs`

```bash
webmcp-cli tabs open https://excalidraw.com    # 打开新网页,返回目标 tabid (UUID)
webmcp-cli tabs switch <tabid>                 # 切换到指定标签页
webmcp-cli tabs close <tabid>                  # 关闭指定标签页
webmcp-cli tabs back                           # 当前标签页后退
webmcp-cli tabs back <tabid>                   # 指定标签页后退
webmcp-cli tabs forward                        # 当前标签页前进
webmcp-cli tabs forward <tabid>                # 指定标签页前进
```

### 2. 查询浏览器当前状态 `webmcp-cli state`

返回当前活跃页签的**导航元数据**(URL、标题、所有打开页签、当前已注入的 `webmcpTools` 清单)。

```bash
webmcp-cli state
…

Read the whole file at its exact version.

How to install

Latest version
mdr add opentiny/webmcp-sdk/webmcp-cli-cdp@v2.0.0
Exact content
mdr add opentiny/webmcp-sdk/webmcp-cli-cdp@sha256:98e6fa071f66e08a

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_eusuvdsfyuchb3t4.svg)](https://markdownregistry.com/a/art_eusuvdsfyuchb3t4)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
v2.0.0 latest2026-09-21 47a2b03 8,368 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (8368 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

opentiny/webmcp-sdk · 119 stars · license MIT · pushed 2026-09-21 · branch dev

API

GET https://markdownregistry.com/api/v1/artifacts/art_eusuvdsfyuchb3t4
GET https://markdownregistry.com/api/v1/resolve?ref=opentiny/webmcp-sdk/webmcp-cli-cdp
GET https://markdownregistry.com/api/v1/blob/98e6fa071f66e08ae418a39ab22992093750ee6023c7f6bc000578a5d2d490d3

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

More from opentiny/webmcp-sdk

AGENTS.md agents
opentiny/webmcp-sdk · AGENTS.md
git:20260729.c3a3843 · audit A · 119 stars
库存入库管理助手 skill
opentiny/webmcp-sdk · packages/doc-ai-angular/remoter/src/skills/inventory/SKILL.md · 帮助电商管理员理解入库规则并执行入库操作的业务手册
v1.0.0 · audit A · 119 stars
订单管理助手 skill
opentiny/webmcp-sdk · packages/doc-ai-angular/remoter/src/skills/orders/SKILL.md · 帮助电商管理员查询和跟踪客户订单信息。当用户询问某个订单的状态、物流、买家信息,或需要查阅原始订单号以发起价保申请时使用。
v1.0.0 · audit A · 119 stars
客户价保单创建及审核 skill
opentiny/webmcp-sdk · packages/doc-ai-angular/remoter/src/skills/price-protection/SKILL.md · 帮助电商管理员处理顾客因降价提出的补差价请求的业务说明书,比如价保单的创建、审核等
v1.0.0 · audit A · 119 stars
product-guide skill
opentiny/webmcp-sdk · packages/doc-ai-angular/remoter/src/skills/product-guide/SKILL.md · 商品管理指南技能包,提供商品管理相关的搜索、查询和商品详情获取功能。
git:20260312.363d2cc · audit A · 119 stars
商品销售记录分析助手 skill
opentiny/webmcp-sdk · packages/doc-ai-angular/remoter/src/skills/sales/SKILL.md · 帮助电商管理员查询商品销售记录并解读销售趋势的业务说明书
v1.0.0 · audit A · 119 stars
库存入库管理助手 skill
opentiny/webmcp-sdk · packages/doc-ai-react/remoter/src/skills/inventory/SKILL.md · 帮助电商管理员理解入库规则并执行入库操作的业务手册
v1.0.0 · audit A · 119 stars
订单管理助手 skill
opentiny/webmcp-sdk · packages/doc-ai-react/remoter/src/skills/orders/SKILL.md · 帮助电商管理员查询和跟踪客户订单信息。当用户询问某个订单的状态、物流、买家信息,或需要查阅原始订单号以发起价保申请时使用。
v1.0.0 · audit A · 119 stars
客户价保单创建及审核 skill
opentiny/webmcp-sdk · packages/doc-ai-react/remoter/src/skills/price-protection/SKILL.md · 帮助电商管理员处理顾客因降价提出的补差价请求的业务说明书,比如价保单的创建、审核等
v1.0.0 · audit A · 119 stars
商品销售记录分析助手 skill
opentiny/webmcp-sdk · packages/doc-ai-react/remoter/src/skills/sales/SKILL.md · 帮助电商管理员查询商品销售记录并解读销售趋势的业务说明书
v1.0.0 · audit A · 119 stars
库存入库管理助手 skill
opentiny/webmcp-sdk · packages/doc-ai/src/skills/inventory/SKILL.md · 帮助电商管理员理解入库规则并执行入库操作的业务手册
v1.0.0 · audit A · 119 stars
订单管理助手 skill
opentiny/webmcp-sdk · packages/doc-ai/src/skills/orders/SKILL.md · 帮助电商管理员查询和跟踪客户订单信息。当用户询问某个订单的状态、物流、买家信息,或需要查阅原始订单号以发起价保申请时使用。
v1.0.0 · audit A · 119 stars

Every file in opentiny/webmcp-sdk

Browse by kind, by grade A, or by owner.