Is your website ready for AI agents? đŸ€–
← Go back

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().

Is your website ready for AI agents? đŸ€–

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, the outputSchema added in November 2026, and safety hints like consequentialHint (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 navigator to document.

👉 Read the guide on the Polypane blog (opens in new tab)

Copied