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
mdr add opentiny/webmcp-sdk/webmcp-cli-cdp@v2.0.0mdr add opentiny/webmcp-sdk/webmcp-cli-cdp@sha256:98e6fa071f66e08aPin 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.
[](https://markdownregistry.com/a/art_eusuvdsfyuchb3t4)
1 badge views in 30 days
Versions
Audit of the latest version
- 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
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.