Is your website ready for AI agents? đ€
A look at Polypane's guide to WebMCPâa W3C specification that lets websites register structured JavaScript tools for AI agents via document.modelContext.registerTool().

Polypane has published a detailed guide (opens in new tab) on WebMCP and how to register tools for AI agents on your website. More and more agents visit sites every day, and it makes far more sense to expose a clean programmatic interface ahead of time rather than forcing them to scrape the DOM or take screenshots. Time to dig in.
What WebMCP is all about
The specificationâcurrently developed at the W3C primarily by Google and Microsoftâlets a web page register regular JavaScript functions as structured tools via document.modelContext.registerTool(). An agent queries the browser for available actions and invokes them directly using JSON Schema, skipping brittle UI click-automation workarounds.
Whatâs useful in the guide
- Anatomy of a tool: walks through configuring
inputSchema, theoutputSchemaadded in November 2026, and safety hints likeconsequentialHint(so the agent asks for user confirmation before irreversible actions such as placing an order). - Practice and testing: explains how many tools make sense on a single page, how to keep them in sync with standard HTML forms, and how to debug everything through Polypaneâs new built-in WebMCP panel without toggling browser flags manually.
- Current status: the API is still experimental and only works in Chromium-based browsers (Mozilla is neutral, while Apple is opposed). The spec is still evolvingâfor instance, the method has already moved from
navigatortodocument.