{"slug": "webmcp", "title": "WebMCP", "summary": "A proposed web standard called WebMCP, published May 18, 2026 and updated October 7, 2026, would let websites declare structured tools in JavaScript and annotate HTML form elements so AI agents know how to interact with page features, with an origin trial now open in Chrome and an Intent to Experiment filed with Chromium's blink-dev group. WebMCP specifies tool discovery (such as checkout or filter_results), JSON Schemas for explicit inputs and expected outputs to reduce hallucination, and shared page state, and can be added as a progressive enhancement. The standard's backers argue that having sites declare an element's purpose is more reliable than agents interpreting buttons and fields step by step, and that tools execute visibly on the page so users can confirm tasks complete as expected.", "body_md": "Published: May 18, 2026, Last updated: October 7, 2026\n\n[WebMCP](https://github.com/webmachinelearning/webmcp?tab=readme-ov-file) is a\nproposed web standard to help you build and expose structured tools for AI\n[agents](https://web.dev/articles/ai-agents). WebMCP provides JavaScript and\nannotates HTML form elements so that agents know exactly how to interact with\npage features, to support a user's experience. This can significantly improve\nthe performance and reliability of agent actuation.\n\nAI agents are a newer technology. They can help human users better complete tasks which are highly complex and technical. WebMCP offers higher accuracy for agentic task completion, and it can be added as a progressive enhancement.\n\n| Explainer | Web | Extensions | Chrome Status | Intent | \n|---|---|---|---|---|\n| [GitHub](https://github.com/webmachinelearning/webmcp) |  [Origin trial](https://developer.chrome.com/origintrials/#/register_trial/4163014905550602241) |  | [View](https://chromestatus.com/feature/5117755740913664) | [Intent to Experiment](https://groups.google.com/a/chromium.org/g/blink-dev/c/gmYffo5WOE8/m/OJxuQRP3AAAJ) | \n\n## Why WebMCP?\n\nWebMCP provides rules for interaction that bridge the gap between web applications and agents, improving efficiency, reliability, and task completion. Instead of an agent reviewing the element, such as a button or a field, to understand its purpose, the website declares the element's purpose, so it's used as intended.\n\nThis is more reliable than actuation, which may have numerous steps and leaves each step open to interpretation by the agent.\n\nWebsites can share explicit purpose, such as search or purchasing, by defining\na `tool`. Tools execute on your webpage visibly, so users gain trust\nthat tasks are completed as expected. This also keeps your brand and\nhuman-centered design choices intact.\n\nWebMCP supports:\n\n- **Discovery** : A standard way for pages to register tools with agents, such\nas`checkout` or`filter_results` .\n- [**JSON Schemas**](https://json-schema.org/understanding-json-schema/reference) :\nExplicit definitions of inputs and expected outputs, to reduce hallucination\nor misunderstanding.\n- **State** : A shared understanding of the current page context, so the agent\nknows what resources are available to act on in real time.\n\nOur goal is to build APIs that any browser with agentic capabilities can\nimplement and benefit from, so your users can more easily complete tasks. You\ncan follow along this process on\n[GitHub](https://github.com/webmachinelearning/webmcp).\n\n### Use cases\n\nThere are many ways you could [use WebMCP](https://developer.chrome.com/docs/ai/webmcp/use-cases).\nFor example:\n\n- **Help your customers get support** . If you provide a software to customers,\nyou may have a complex support flow to address many different questions. You\ncan use WebMCP to help an agent more quickly navigate to the right form and\nfill in fields with user-provided information.\n- **Improve travel booking** . Help agents book complex, multi-city and\nmulti-passenger trips with fewer steps.\n\nSome actions may be sensitive, such as making a purchase. You can include a command to request user interaction with a confirmation dialog.\n\nIn a practical sense, your tools could accomplish the following tasks:\n\n- **Fill in structured forms** : Build a`submit_application` tool to help agents\nmap data collected from the conversation with the user to form fields\ncorrectly. For example, you can differentiate if a field requires a full name\nversus a separate first and last name.\n- **Support agent interactions in human-first interfaces** : Certain fields are\ndesigned for human users, but may not be understood by agents. You could build\na`date_pick` tool that allows for a complex date and time selection in a\nreservation or event booking.\n- **Quicker application debugging** : You can build a`run_diagnostics` tool on a\ndeveloper settings page, so an agent can trigger fixes that are otherwise\nhidden behind nested menus.\n\nIs your use case missing? Or do you have an idea you're excited to share for\nWebMCP? [Raise questions and participate in discussion on GitHub](https://github.com/webmachinelearning/webmcp?tab=readme-ov-file).\n\n## Get started\n\nJoin the [WebMCP origin trial](https://developer.chrome.com/origintrials/#/register_trial/4163014905550602241)\nfrom Chrome 149. Learn more about how to\n[get started with origin trials](https://developer.chrome.com/docs/web-platform/origin-trials).\n\n### Local WebMCP\n\nWebMCP is available as a Chrome flag for local development:\n\n1. Open Chrome and navigate to `chrome://flags/#enable-webmcp-testing`\n2. Set the flag to **Enabled** .\n3. Relaunch Chrome to apply the changes.\n\n## Use WebMCP APIs\n\nThere are two APIs you can use to set up your website tools:\n\n- [Imperative API](https://developer.chrome.com/docs/ai/webmcp/imperative-api) : Define different types of\ntools with standard JavaScript, such as form input, navigation tools, state\nmanagement, or other functions.\n- [Declarative API](https://developer.chrome.com/docs/ai/webmcp/declarative-api) : Add annotations to a standard\nHTML forms to create a WebMCP tool.\n\nYou can [debug WebMCP tools](https://developer.chrome.com/docs/devtools/application/webmcp) and validate\nhow the browser parses the JSON Schema, with Chrome DevTools.\n\n### Limitations\n\nWhile WebMCP aims to make complex tasks simpler for agents and humans, there are limitations:\n\n- **Headless browsing** : While it may be possible to run WebMCP tools\nin headless environments, this API is primarily designed for local browser\nworkflows with a human in the loop.\n- **Overhead for complex interfaces** : If your site is highly complex, you\nlikely need to refactor or add JavaScript to handle application and interface\nstate.\n- **Tool discoverability** : Clients and browsers must visit a site directly to\nknow if it has callable tools.\n\n### Permissions policy\n\nBoth APIs are gated by the `tools`\n[Permissions Policy](https://developer.chrome.com/docs/privacy-security/permissions-policy).\nThe policy defaults to `self`, which allows tool registration in top-level and\nsame-origin contexts, and disables it for cross-origin iframes.\n\nTo allow WebMCP tools in a cross-origin iframe, add the `allow=\"tools\"`\nattribute to the iframe.\n\n## Demo\n\nExamples of demos covering both imperative and declarative implementations are available:\n\n- [WebMCP zaMaker](https://github.com/GoogleChromeLabs/webmcp-tools/tree/main/demos/pizza-maker) uses the WebMCP Imperative API.\n- [Travel demo (React)](https://github.com/GoogleChromeLabs/webmcp-tools/tree/main/demos/react-flightsearch) uses the WebMCP Imperative API.\n- [Le Petit Bistro demo](https://github.com/GoogleChromeLabs/webmcp-tools/tree/main/demos/french-bistro) uses the WebMCP Declarative API.\n\nYou can also review and explore the demo source code on\n[GitHub](https://github.com/GoogleChromeLabs/webmcp-tools/tree/main/demos).\n\n## Imitate an agent to test your tools\n\nWe've built two Chrome Extensions to help you see how WebMCP tools work in our demos and your applications.\n\n[Install the **Example Agentic Chrome Extension**](https://github.com/GoogleChromeLabs/webmcp-extension/)\nto inspect, monitor, and execute WebMCP tools with natural language prompts. In\nparticular, this extension always trusts WebMCP *annotations*, which can alert\nthe agent to sensitive actions. This demonstrates how a tool may perform\ndifferently with annotations.\n\nBy default, this extension uses a small Node server with an AI SDK. API keys are\nrequired and stay on the local server. Your prompts are sent to the\n`gemini-3.6-flash` model by default, but you can modify the model choice and API\nprovider in the extension's `.env` file. There are fields for OpenAI, Google,\nand Anthropic or, alternatively, you can customize the extension to use a model\nfrom another provider.\n\nAlternatively, you can use a client-side model with the Prompt API. This doesn't\nrequire API keys and data stays on your device. To do so, enable\n`chrome://flags/#prompt-api-tool-use`.\n\n[Install the **Model Context Tool Inspector Extension**](https://chromewebstore.google.com/detail/model-context-tool-inspec/gbpdfapgefenggkahomfgkhfehlcenpd)\nto experiment with an agent and see how WebMCP tools work in live demos or your\nown applications. Use natural language prompts to determine if the agent\ninteracts with WebMCP tools as expected.\n\nTo use Gemini to call your tools, you must have an API key, which you provide in\nthe extension's interface. Your prompts are sent by default to the\n`gemini-3.6-flash` model. You can select a different Gemini model to\nexperiment with or customize the extension code to use another provider's model.\n\n## Engage and share feedback\n\nWebMCP is under active discussion and subject to change in the future. If you try these APIs and have feedback, we'd love to hear it.\n\n- Join the [WebMCP origin trial](https://developer.chrome.com/origintrials/#/register_trial/4163014905550602241) ,\nand follow the implementation for Chrome on[Chrome Status](https://chromestatus.com/feature/5117755740913664) .\n- [Read the WebMCP explainer](https://github.com/webmachinelearning/webmcp?tab=readme-ov-file) ,\nraise questions and participate in discussion.\n- Read [WebMCP best practices](https://developer.chrome.com/docs/ai/webmcp/best-practices) .\n- Read our [WebMCP tool security guidance](https://developer.chrome.com/docs/ai/webmcp/secure-tools) and[best practices](https://developer.chrome.com/docs/ai/webmcp/best-practices) .\n- If you have feedback on Chrome's implementation, file a\n[Chromium bug](https://crbug.com/new?component=2021259) .", "url": "https://wpnews.pro/news/webmcp", "canonical_source": "https://developer.chrome.com/docs/ai/webmcp", "published_at": "2026-12-05 17:19:44+00:00", "updated_at": "2026-12-05 17:45:54.900157+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "artificial-intelligence", "developer-tools"], "entities": ["WebMCP", "Chrome", "Chromium", "webmachinelearning", "web.dev", "JSON Schema"], "also_reported_by": [], "takeaway": "Register page tools with WebMCP using JSON Schemas for inputs and outputs and shared page state so agents call declared actions like checkout or filter_results instead of interpreting form elements step by step.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/webmcp", "markdown": "https://wpnews.pro/news/webmcp.md", "text": "https://wpnews.pro/news/webmcp.txt", "jsonld": "https://wpnews.pro/news/webmcp.jsonld"}}