WebMCP in-page tools
This skill is a delta of mcp-application (filesystem parent) and of
frontend-application (front-end parent). Pin both parents in the recipe. WebMCP is
MCP in the running page: JavaScript functions or HTML tools with natural-language
descriptions and structured schemas for in-browser agents.
In-page, not a second protocol
Register tools on the document's model context (the WebMCP registerTool shape:
name, description, inputSchema, execute). HTML tools are first-class when the
specification names them. Inherit the MCP parent's tool-versus-resource split, input
schema validation, and structured errors. Do not invent a parallel protocol.
Tools reuse the page's existing client-side logic. execute updates the same UI and
client state a human would reach, then returns a structured result. If a requested
task is outside the registered tools, the agent may fall back to ordinary page
actuation; do not generate a hidden headless API as a substitute.
Front-end delta
Follow the front-end parent for JavaScript-only generation, relative imports with
extensions, and dependency-free modules. Keep the human interface primary: WebMCP
augments it for cooperative, human-in-the-loop agents. Do not disintermediate the
page with a server-only MCP integration.
What this leaf does not own
Operator catalogs, project mcps/ hygiene, and embedded process MCP stay on their
own leaves. This skill must not name a personal catalog path or a reserved operator
id as a product tool.