AI summary
WebMCPA proposed web standard that lets a page tell an AI agent which actions it offers, as tools the agent can call. is a proposed web standard that lets a page offer each action as a toolA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function. an AI agentA program in which an AI model, such as Claude or GPT, uses software for you: it looks at a page, decides what to do next and does it. can call, so the agentA program in which an AI model, such as Claude or GPT, uses software for you: it looks at a page, decides what to do next and does it. doesn't have to guess which button to click.
- WebMCPA proposed web standard that lets a page tell an AI agent which actions it offers, as tools the agent can call. is a proposed web standard. A page uses JavaScript or HTML form attributes to register a toolA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function. an AI agentA program in which an AI model, such as Claude or GPT, uses software for you: it looks at a page, decides what to do next and does it. can call.
- It doesn't replace MCPModel Context Protocol: a standard way for an AI agent to call tools that a server offers.. MCPModel Context Protocol: a standard way for an AI agent to call tools that a server offers. connects an agentA program in which an AI model, such as Claude or GPT, uses software for you: it looks at a page, decides what to do next and does it. to your services, while a WebMCPA proposed web standard that lets a page tell an AI agent which actions it offers, as tools the agent can call. toolA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function. exists only while the page is open.
- Flags such as "this action matters or is hard to undo" (consequentialHint) are only hints, so permissions still have to be enforced in your own code.
- As of November 2026 it's a draft, with a Chrome origin trialA trial period in which a site signs up to try a Chrome feature with its real visitors before it ships. that starts at version 149.
An AI agentA program in which an AI model, such as Claude or GPT, uses software for you: it looks at a page, decides what to do next and does it. using a website mostly looks and guesses. It reads the DOMThe browser's live tree of a page's elements. Scripts read it and change it. or a screenshot, decides which button is probably the right one, clicks it, then looks again to see what happened. WebMCPA proposed web standard that lets a page tell an AI agent which actions it offers, as tools the agent can call. is a proposed web standard that lets the page skip that part and tell the agentA program in which an AI model, such as Claude or GPT, uses software for you: it looks at a page, decides what to do next and does it. which actions exist and what each one needs.
Each action is a toolA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function. with a name, a description and a schemaA description of the input a tool accepts: which fields it has, and what type each one is. for its input. The MCPModel Context Protocol: a standard way for an AI agent to call tools that a server offers. in WebMCPA proposed web standard that lets a page tell an AI agent which actions it offers, as tools the agent can call. stands for the Model Context Protocol, a standard way for AI agentsA program in which an AI model, such as Claude or GPT, uses software for you: it looks at a page, decides what to do next and does it. to call toolsA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function. that a server offers.
I haven’t added WebMCPA proposed web standard that lets a page tell an AI agent which actions it offers, as tools the agent can call. to a site yet. Everything here comes from the spec and Chrome’s docs, so you won’t find benchmarks.
WebMCPA proposed web standard that lets a page tell an AI agent which actions it offers, as tools the agent can call. is also different from the chat on this site. That chat is my own assistant behind my own endpoint. WebMCPA proposed web standard that lets a page tell an AI agent which actions it offers, as tools the agent can call. is for an agentA program in which an AI model, such as Claude or GPT, uses software for you: it looks at a page, decides what to do next and does it. the visitor runs in their own browser, such as one inside a browser extension.
tabcrew, a project of mine, lets an AI coding assistant type into ChatGPT, DeepSeek or Gemini. It finds the message box and the reply in the page with code I wrote for each site. A page’s own toolsA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function. would replace that code.
Registering a tool with JavaScript
The JavaScript API, which Chrome’s docs call imperative, is one call on document.modelContext. You give the toolA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function. a name, a description the agentA program in which an AI model, such as Claude or GPT, uses software for you: it looks at a page, decides what to do next and does it. will read, a schemaA description of the input a tool accepts: which fields it has, and what type each one is. for its input and a function to run:
if ("modelContext" in document) {
await document.modelContext.registerTool({
name: "search_posts",
description: "Search this blog's posts by keyword. Returns titles and URLs.",
inputSchema: {
type: "object",
properties: { query: { type: "string" } },
required: ["query"],
},
annotations: { readOnlyHint: true },
execute: async ({ query }, { signal }) => {
// searchPosts is your own app code.
const posts = await searchPosts(query, signal);
return JSON.stringify(posts);
},
});
}The if makes the toolA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function. an extra: in a browser without the API, the page works exactly as before. The API only exists on a secure page: HTTPS, or localhost while you develop.
To remove a toolA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function. later, you need a separate signalAn object you hand to an API so you can cancel what it started later., not the one execute receives. Create an AbortController, pass { signal: controller.signal } as the second argument to registerTool, and call controller.abort() when the toolA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function. should go away.
You’ll still see navigator.modelContext in older posts. The current spec puts it on document, so I’d write new code against that.
Turning a form into a tool
If the action is already a form, two attributes are enough. Chrome’s docs call this the declarative API:
<form
toolname="search_posts"
tooldescription="Search this blog's posts by keyword."
action="/search"
>
<label for="q">Keyword</label>
<input id="q" name="q" type="text" required />
<button type="submit">Search</button>
</form>The browser builds the schemaA description of the input a tool accepts: which fields it has, and what type each one is. from the fields and labels. When an agentA program in which an AI model, such as Claude or GPT, uses software for you: it looks at a page, decides what to do next and does it. calls the toolA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function., the browser focuses the form and fills it in while the user watches. The user still clicks Submit unless you add toolautosubmit.
In your submit handler, event.agentInvoked tells you the agentA program in which an AI model, such as Claude or GPT, uses software for you: it looks at a page, decides what to do next and does it. triggered it, and event.respondWith() sends a result back to the agentA program in which an AI model, such as Claude or GPT, uses software for you: it looks at a page, decides what to do next and does it.. Call event.preventDefault() before respondWith().
- Register
The page registers its tools when it loads.
document.modelContext.registerTool(...) - Discover
The browser passes the tool list to the agent: names, descriptions and schemas.
- Choose
The agent picks a tool and writes arguments that match its schema.
{ "query": "cloudflare" } - Run
The tool runs in the page, with the session of the signed-in user.
- Result
Whatever the function returns goes back to the agent as the tool's output.
WebMCP and MCP solve different problems
The name makes it sound like MCPModel Context Protocol: a standard way for an AI agent to call tools that a server offers. in the browser. Chrome’s docs call it MCPModel Context Protocol: a standard way for an AI agent to call tools that a server offers.-inspired and say plainly that it’s neither an extension of MCPModel Context Protocol: a standard way for an AI agent to call tools that a server offers. nor a replacement for it.
An MCPModel Context Protocol: a standard way for an AI agent to call tools that a server offers. server connects an agentA program in which an AI model, such as Claude or GPT, uses software for you: it looks at a page, decides what to do next and does it. to your services over JSON-RPCA small protocol for calling a function on another machine: you send the method name and arguments as JSON and get JSON back., from anywhere and at any time. A WebMCPA proposed web standard that lets a page tell an AI agent which actions it offers, as tools the agent can call. toolA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function. exists only while someone has your page open, and it works with that person’s session. If you already have an MCPModel Context Protocol: a standard way for an AI agent to call tools that a server offers. server, keep it. WebMCPA proposed web standard that lets a page tell an AI agent which actions it offers, as tools the agent can call. adds a way for an agentA program in which an AI model, such as Claude or GPT, uses software for you: it looks at a page, decides what to do next and does it. to use the site the user is looking at.
Annotations are hints
Annotations are extra flags on a toolA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function., like the readOnlyHint in the code above. Three matter most:
readOnlyHintsays the toolA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function. doesn’t change anything.consequentialHintmarks something significant or hard to undo, so the agentA program in which an AI model, such as Claude or GPT, uses software for you: it looks at a page, decides what to do next and does it. or browser can ask the user first.untrustedContentHintsays the output contains things like reviews or comments, which can carry prompt injectionText hidden in content, such as a review, that tries to give the agent new instructions..
The spec is direct about the limit: a malicious site can leave these out or lie in them. They help an honest site describe its toolsA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function., and your own code still has to do the enforcing.
A toolA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function. runs with the user’s logged-in session, so I’d send it through the same validation and permission checks as the visible UI. Chrome’s best-practices page recommends one shared piece of code that both the UI and the toolA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function. call for validation, permissions and side effects.
ToolsA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function. are off inside an iframe that loads a page from another site (a cross-origin iframe) unless you add allow="tools". Chrome extensions, though, can list and run a page’s toolsA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function., so don’t treat a toolA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function. as private.
Where it stands in November 2026
The spec is a Draft Community Group Report. A W3CThe organization that publishes web standards such as HTML and CSS. community group publishes it, but it isn’t on the Standards Track, the path that ends in an official W3CThe organization that publishes web standards such as HTML and CSS. standard.
Chrome’s docs list an origin trialA trial period in which a site signs up to try a Chrome feature with its real visitors before it ships. starting with Chrome 149 and say the API can still change. Chrome is the only implementation I could confirm. To try it locally, turn on chrome://flags/#enable-webmcp-testing.
WebMCPA proposed web standard that lets a page tell an AI agent which actions it offers, as tools the agent can call. also won’t do anything for search engines. An agentA program in which an AI model, such as Claude or GPT, uses software for you: it looks at a page, decides what to do next and does it. only finds your toolsA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function. after it has opened the page.
I’d try it on a real multi-step flow, like a booking form or a filter-heavy catalog, starting with a read-only toolA named action a page or server offers an AI agent. It has a description and a list of inputs, and the agent calls it like a function. behind the if above. A blog like this one has little to gain, because an agentA program in which an AI model, such as Claude or GPT, uses software for you: it looks at a page, decides what to do next and does it. can already read the page.
