# WebMCP Agency > Research, tools and adoption data for WebMCP. A research site published by [Convertlyft](https://convertlyft.com/?utm_source=webmcpagency&utm_medium=referral&utm_campaign=llms-txt): guides to WebMCP, llms.txt and AI crawlers written from primary sources, a free checker, and a research crawl of 10,000 popular US web origins. WebMCP is a proposed web API (`document.modelContext`) drafted by the Web Machine Learning Community Group. It is not the Model Context Protocol (MCP) and not a W3C Standard. Guides are checked against the WebMCP draft of 19 November 2026. WebMCP Agency is a research site with a free checker and directory. A paid Deep Check report (US$19.00 per run) is priced on /pricing and is not on sale yet. It is not a service agency you can hire. Full text of every guide. The index of links is at https://webmcpagency.com/llms.txt. --- # What is WebMCP? URL: https://webmcpagency.com/what-is-webmcp Updated: 2026-11-20 · Checked against the WebMCP draft of 19 November 2026 > WebMCP in plain English: what it is, how document.modelContext works, its status in Chrome, what the spec says about security, and how it differs from MCP. WebMCP is a proposed web API that lets a web page offer its own JavaScript functions to AI agents as "tools". Each tool has a name, a plain-language description and an input schema, so an agent can call a function instead of clicking through the page. A page registers tools with `document.modelContext.registerTool()`. WebMCP is not a W3C Standard. It is a Draft Community Group Report from the Web Machine Learning Community Group. ## Why does WebMCP exist? WebMCP exists so a site can tell an AI agent what it can do, instead of the agent having to read the page and act like a person. Without it, an agent has to find the search box, type, click, wait and read the result. That is slow, and it breaks easily when the layout changes. With WebMCP, the site writes a tool, describes it in plain words, and states which inputs it needs. The agent reads the list and calls the tool directly. Two points matter for site owners: - **Tools run inside the page.** A tool runs in the page that registered it, with that page's DOM, storage and logged-in session, just like your own scripts. - **Agents find tools by visiting.** There is no remote catalog. A browser or agent learns about a site's tools only when it loads the site. Chrome says the API "is primarily designed for local browser workflows with a human in the loop". The explainer lists headless use (a browser with no visible window) as a goal, for tools built for a person in the loop. It also lists a non-goal: the API "is not intended for fully autonomous agents where a browser UI is not present". ## Who makes WebMCP, and is it a W3C standard? WebMCP is published by the Web Machine Learning Community Group. The spec says: "It is not a W3C Standard nor is it on the W3C Standards Track." The current draft is dated 19 November 2026. Its editors are Brandon Walderman and Samuel Dallstream (Microsoft) and Khushal Sagar and Dominic Farolino (Google). The proposal lives in the webmachinelearning/webmcp repository on GitHub. It holds the spec, the main explainer (README), a declarative API explainer for HTML forms, a continuations explainer, docs/service-workers.md and implementation-status.md. The README credits early authors from Microsoft and Google and says it was first published on 13 August 2025. The W3C Technical Architecture Group (TAG) has an open review labelled "CG early review". It was opened alongside a proposal to add WebMCP as a tentative deliverable of the WebML Working Group. That adoption is a proposal, not a done deal. ## How WebMCP works: the imperative API The "imperative" API is the JavaScript version. A page calls `registerTool()` once per tool. ### The entry point is document.modelContext The API lives on the page's document, as `document.modelContext`. It only exists in a secure context (HTTPS or localhost). You may still see `navigator.modelContext` in older posts and demos. That is the old name. On 19 May 2026 the spec scoped ModelContext to the Document. The reason: the initial about:blank document shares its Window with the next document, so tools could leak across that navigation. On 27 May 2026, on the W3C TAG's recommendation, the `modelContext` getter itself moved from navigator to document. Chrome's current docs use only `document.modelContext`. To update old code, see [navigator.modelContext to document.modelContext](https://webmcpagency.com/navigator-modelcontext). ### Registering a tool Call `document.modelContext.registerTool(tool, options)` to add a tool. It returns a Promise that rejects when something is wrong, so catch errors. Pass an AbortController's signal in `options` so you can remove the tool later. Check first that `document.modelContext?.registerTool` exists, so your code does nothing in browsers without WebMCP. ### Tool fields - **name** (required): the tool's ID. It must be 1 to 128 characters, using only ASCII letters, digits, underscore (_), hyphen (-) and dot (.). It must be unique in the document. - **title** (optional): a human-readable label. - **description** (required): plain-language text that tells the agent when to call the tool. It must not be empty. - **inputSchema** (optional): an object describing the inputs. - **execute** (required): the function that runs. It gets the input object and an options object with a signal. - **annotations** (optional): hints about the tool's behaviour. ### Annotations Annotations are hints. They all default to false. - **readOnlyHint**: the tool does not change any state and only reads data. - **untrustedContentHint**: the output contains untrusted data, from the point of view of the site registering the tool. - **consequentialHint**: the tool's actions are significant, real-world or cannot be undone, such as booking a flight or moving money. - **debugging**: the tool is for debugging and developer tooling. Chrome supports it from Chrome 156. ### When registerTool rejects The spec lists these cases: - An invalid name, an empty description, or a name already used in the same document: InvalidStateError. - The document is not allowed to use the "tools" feature: NotAllowedError. - The signal you passed is already aborted: the Promise rejects with the signal's abort reason. ### Removing a tool: the abort signal There is no `unregisterTool()`. To remove a tool, pass an AbortSignal in the second argument and later call `abort()` on its AbortController. Since Chrome 153, removing a tool does not cancel calls to it that are already running. ### Methods that were removed Earlier drafts had methods that are gone from the current spec: - `provideContext()` and `clearContext()` were removed on 5 March 2026, because they let one script overwrite tools registered by another. - `unregisterTool()` was removed on 27 March 2026, in favour of the abort signal. If a tutorial uses any of these, it was written for an older draft. ### Sharing tools with other origins By default, a tool is visible only to documents from the same origin as the page that registered it. A cross-origin document can see or call it only when every side opts in: - The page that registers the tool lists the caller's origin in `exposedTo`, in the second argument to `registerTool()`. - The caller lists the tool's origin in `fromOrigins` when it calls `getTools()`. - For a cross-origin iframe, the embedding page must also grant it the feature with `allow="tools"`. ### Reading and calling tools from the page The ModelContext interface also has `getTools()`, which returns registered tools, and `executeTool()`, which runs one with an input object. Agents choose tools by their names, descriptions and input schemas, so keep descriptions specific and schemas accurate. ## The declarative API: HTML forms as tools The "declarative" approach turns an existing HTML form into a tool by adding attributes, such as `toolname` and `tooldescription` on the `