Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计通过

webmcpwebmcp 网页抓取

Agent Skill

webmcp 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

291

周安装

12

GitHub Stars

1,221

下载量

95
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:webmcp(webmcp 网页抓取)
来源仓库:https://github.com/qdhenry/claude-command-suite
仓库路径:skills/webmcp
安装命令:
npx skills add https://github.com/qdhenry/claude-command-suite --skill webmcp
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/qdhenry/claude-command-suite --skill webmcp

简介

用于网页内容的抓取与信息提取,适合需要从公开站点获取结构化数据的场景。

  • 支持页面渲染、元素定位与内容归档,可辅助竞品分析、内容聚合或测试验证。
  • 通过 npx 命令从指定仓库安装,需确认目标网站的反爬策略与合规性要求。
  • 频繁请求可能被封禁 IP,建议设置延迟与重试机制,并遵守 robots.txt 规范。
  • webmcp 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

<essential_principles>

WebMCP is a browser-native standard that exposes structured tools for AI agents on websites. Instead of screen-scraping, agents interact through typed JavaScript APIs and HTML annotations.

Two APIs:

  • Imperative APIwindow.navigator.modelContext — register tools via JavaScript
  • Declarative API — HTML toolname/tooldescription attributes on <form> elements

Prerequisites: Chrome 146.0.7672.0+, chrome://flags/#enable-webmcp-testing enabled.

Core principles that always apply:

  1. Tools must be atomic and composable — one function per tool, no overlapping tools with nuanced differences. Combine similar tools into one with input parameters.
  2. Accept raw user input — tools should accept natural strings (e.g., "11:00") not computed values (e.g., minutes-from-midnight). Minimize cognitive computing for the model.
  3. Validate in code, not schema — schema constraints are helpful but not guaranteed. Validate within execute functions and return descriptive errors so agents can self-correct.
  4. Update UI before returning — agents use UI state to verify execution. Ensure execute/submit logic updates visible state before resolving.
  5. Positive, verb-first descriptions — describe what the tool does and when to use it. Avoid negations. "Creates a calendar event for a specific date" not "Do not use for weather."

</essential_principles>

  1. Set up WebMCP in a project (initial integration)
  2. Add a tool using the imperative JavaScript API
  3. Add a tool using the declarative HTML form API
  4. Debug WebMCP tools that aren't working
  5. Audit existing WebMCP implementation for best practices
  6. Test WebMCP tools
  7. Something else

Wait for response before proceeding.

After reading the workflow, follow it exactly.

<reference_index>

All in references/:

APIs: imperative-api.md, declarative-api.md Design: tool-design.md Events: events-and-css.md Quality: testing.md, anti-patterns.md

</reference_index>

<workflows_index>

All in workflows/:

WorkflowPurpose
setup-webmcp.mdInitial WebMCP integration into a project
add-imperative-tool.mdRegister tools via JavaScript API
add-declarative-tool.mdAnnotate HTML forms as WebMCP tools
debug-webmcp.mdDiagnose and fix WebMCP issues
audit-webmcp.mdReview implementation against best practices
test-webmcp.mdTest tools with inspector extension and agents

</workflows_index>

<templates_index>

All in templates/:

TemplatePurpose
imperative-tool.mdScaffolding for JS-registered tools
declarative-form.mdScaffolding for HTML form-based tools

</templates_index>

<verification_loop>

After every WebMCP change:

  1. Open Chrome DevTools console — check for JS errors
  2. Verify navigator.modelContext exists (Chrome flag enabled?)
  3. Use Model Context Tool Inspector extension to list registered tools
  4. Manually execute a tool from the inspector to confirm it works
  5. Check that UI updates are visible after tool execution

Report to user:

  • "Tools registered: X imperative, Y declarative"
  • "Tool [name]: executes successfully / returns error [detail]"
  • "UI state: updates correctly after execution / missing update"

</verification_loop>

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.7%
按下载量换算36

Claude

31.5%
按下载量换算30

Cursor

18.77%
按下载量换算18

Gemini CLI

8.74%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills