← all concepts

WebMCP

A proposed web standard that lets sites expose structured tools to AI agents, so agents invoke defined actions instead of screen-scraping the page.

WebMCP is a proposed web standard that lets a website expose structured tools directly to AI agents. Instead of an agent looking at your page and guessing what buttons and forms do, your site declares what it can do, how to do it, and what inputs it needs — turning fragile screen-scraping into reliable, defined actions.

There are two ways to implement it. The imperative API registers tools in JavaScript via navigator.modelContext.registerTool(), each with a name, description, JSON input schema and execute callback. The declarative API is simpler: add attributes like toolname and tooldescription to existing HTML forms and the browser turns them into agent-ready tools, bringing the form into focus and waiting for user confirmation on invocation.

Crucially it's model-agnostic and being developed as an open standard, not a Chrome-only or Gemini-only feature. It builds on the Model Context Protocol idea and is a foundational piece for the agentic web that AI agents will navigate.

Related concepts

Format