3 min read

WebMCP: websites that agents can use, not just read

Chrome's WebMCP preview lets a page expose tools to AI agents directly in the browser. What it is, what's still unsettled and what to try.

Reading a website and using a website are different jobs. Markdown for agents helps with reading. WebMCP is about using.

In February the Chrome team announced an early preview of WebMCP, a browser API that lets a page tell an AI agent what it can do. Instead of an agent looking at a screen, guessing which button is "Add to cart" and clicking at pixel coordinates, the page registers a tool called add_to_cart with a described set of parameters, and the agent calls it.

How it works

A site can expose tools two ways, per the early documentation. Declaratively, by annotating existing HTML forms so the browser can describe them to an agent. Imperatively, by registering a function from JavaScript through an API on the browser's model-context object, with a name, a description and an input schema.

If you've used the Model Context Protocol on the server side, it's the same idea moved into the page: the tool is defined by the site, runs in the user's browser session and uses the user's existing login.

That last part is the appeal. No API keys to hand out, no separate integration. If the user is signed in, the agent acts as the user, inside the page, through functions the site chose to expose.

Why it's better than the alternative

The current way agents operate websites is by looking at them. That's slow, brittle and expensive. A redesign breaks it. A cookie banner confuses it. A model has to re-derive from pixels what the developer already knew.

A declared tool is the opposite: fast, stable and explicit about what's allowed. For the site owner it's also a control surface. You decide what an agent can do instead of discovering what it tried.

What's unsettled

I want to be careful here because this is moving. When I last checked, the preview was limited to a Canary build behind a flag, labelled as a developer trial, and sources disagreed about whether the main object name had changed. Check the Chrome developer documentation before building on specifics. The API surface will change.

The bigger open questions aren't technical.

Permission. When an agent calls a tool that spends money or sends a message, who confirms? The spec discussion leans on the browser asking the user, but the exact model is unfinished.

Abuse. Any tool a site exposes is a tool a malicious page, or injected text, can try to make an agent misuse. The same prompt-injection problem as everywhere else, now with the user's session attached.

Who sets the standard. Several agent protocols are competing. It's early enough that betting on one is a coin flip.

What I'd try

If you run a site with a real action on it, such as search, booking or checkout, add one low-risk tool and watch what happens. For a blog like this one, the honest answer is there's little to expose. A "search the archive" tool would be the only sensible one.

Which is itself a useful finding. Most sites don't need this yet. The ones that do will know, because they're already watching agents fumble their forms.