WebMCP: How to Make Your Website Agent-Ready for AI Browsing
WebMCP lets AI agents act on your site, not just read it. Learn declarative vs imperative WebMCP, llms.txt, Lighthouse agentic audits, and how to start.
WebMCP lets AI agents act on your site, not just read it. Learn declarative vs imperative WebMCP, llms.txt, Lighthouse agentic audits, and how to start.
AI agents are starting to do more than read your website. They are beginning to act on it: filling forms, starting checkouts, booking calls, and running tools on a visitor’s behalf. For most sites, that is a problem, because an agent can only guess at what each button and field does by simulating clicks and reading the page like a human. WebMCP is the emerging standard that fixes this, and it is quickly becoming the next frontier of Answer Engine Optimization (AEO).
We recently made snezzi.com agent-ready end to end. This is what WebMCP is, how the two implementation paths differ, how Chrome scores agentic readiness, and the practical lessons we learned shipping it on a live site.
llms.txt file, fix accessibility tree issues, reduce layout shift, and verify everything with Chrome’s experimental Lighthouse Agentic Browsing audit.WebMCP is a proposed web standard, championed in Chrome, that lets a website declare its actions as structured tools that AI agents can call directly. Instead of an agent inferring that a field labeled “Website” expects a company URL, your site tells the agent exactly that, in a machine-readable schema.
The key term here is actuation: the act of an agent simulating mouse clicks and typing as if it were the human user. Actuation is brittle. Every step is open to interpretation, and a single misread field can derail a multi-step task like booking a call. WebMCP replaces guesswork with a contract. Your page says “this is the book-a-call tool, it needs a website and an email,” and the agent uses it the way you intended, visibly, on your page, with your brand and design intact.
That last point matters. Tools execute on your page, in front of the user, so trust stays where it belongs.
AEO got your brand cited in AI answers. Agent-readiness is the natural next step: getting your brand acted on. As more people delegate research and buying tasks to assistants, the sites that convert will be the ones an agent can complete a task on without friction.
If an agent lands on your pricing page for a high-intent query and cannot reliably start a conversation, that is a lost customer, the same way a confusing checkout loses a human. WebMCP is how you make your highest-intent pages agent-completable, not just agent-readable.
There are two APIs, and most sites should use both.
The fastest start is declarative. You add three attributes to existing HTML forms:
toolname: a clear, action-oriented name such as book_appointmenttooldescription: what the tool does and when an agent should use ittoolparamdescription: on individual fields, so the agent understands each parameterThe browser turns the annotated form into a tool automatically. No new runtime, no JavaScript. This is the right baseline for the bulk of your conversion forms.
The imperative API gives you full control. You register a tool with a name, a description, a complete JSON Schema for its inputs, and an execute function that runs when an agent calls it:
document.modelContext.registerTool({
name: "book_strategy_session",
description: "Collect a website, budget, and work email, then start booking.",
inputSchema: {
type: "object",
properties: {
website: { type: "string", description: "Company website URL." },
email: { type: "string", description: "Work email." },
},
required: ["website", "email"],
},
execute: async ({ website, email }) => {
// fill the real form, run your validation, submit your existing flow
return "Strategy session request submitted.";
},
});
Use imperative for your most important conversion paths. You author the schema by hand, so the agent sees exactly what each tool needs, and your execute function reuses your existing validation and lead flow.
WebMCP covers actions. Discovery still matters. An llms.txt file at your domain root gives agents and answer engines a concise, machine-readable map of your most important pages. Treat it as the agent-facing equivalent of your homepage: a short summary, your core pages, and your primary conversion paths.
Chrome’s Lighthouse includes an experimental Agentic Browsing category. It is not a single weighted score. It is a set of deterministic checks that report a pass ratio, which makes it easy to track in a build pipeline. The checks include:
To see the category, you run Lighthouse with the experimental preset.
Paste a URL and get a fractional agentic-readiness score across WebMCP tools, the accessibility tree, and layout stability, mirroring Chrome's Lighthouse agentic browsing audit.
Run the Agentic Readiness CheckerIt is behind a flag today. WebMCP is available in Chrome for local development and is heading into an origin trial. Build it as a progressive enhancement. Visitors in a non-WebMCP browser see your normal site, and agent-enabled browsers get the tools.
Declarative is fast, but check your schemas. On current Chrome builds, we found the declarative path could register a tool with an empty parameter schema. The agent could see the tool name but not what it needed. Moving our highest-value forms to the imperative API gave us real, populated schemas.
Tool names must be unique per page. We hit a case where a sidebar form and an inline form shared a name, so the browser registered only one and the other became invisible to agents. Give each tool a distinct, descriptive name and test for it.
Accessibility is not optional. Agents read the accessibility tree. Every interactive element needs a programmatic name, valid roles, and nothing important hidden from the tree. The work you do here pays off for humans and agents at once.
Stability counts. Keep Cumulative Layout Shift low. An agent that locates a button and then watches it jump because of a late-loading image will fail the same way a person mis-taps.
You do not need to rebuild your whole website. Start with one high-value page and one high-value workflow, then expand.
Pick a workflow where agent completion would clearly help revenue or lead quality. Good first candidates are:
Do not start with every form on the site. Start with the workflow that has the highest commercial intent and the clearest required inputs.
Before adding WebMCP, make sure the normal HTML form is agent-readable:
namerequired attributearia-label valuesIf a human using assistive technology would struggle with the form, an agent probably will too.
For a simple form, add tool metadata directly to the form and its fields:
<form
toolname="book_strategy_session"
tooldescription="Collect a visitor's website and work email, then start the strategy session booking flow."
>
<label>
Website
<input
name="website"
type="url"
required
toolparamdescription="The visitor's company website URL."
/>
</label>
<label>
Work email
<input
name="email"
type="email"
required
toolparamdescription="The visitor's work email address."
/>
</label>
</form>
Keep the tool name action-oriented. book_strategy_session is better than form_1, and run_ai_visibility_audit is better than submit.
Declarative metadata is a strong baseline, but important conversion paths usually deserve the imperative API. Use it when you need:
The safest pattern is to let the tool fill and submit your real form, instead of creating a parallel conversion path. That way your existing validation, analytics, and CRM logic continue to run.
Create /llms.txt at your domain root. Keep it short and useful:
This helps agents understand what your site offers before they decide which page or tool to use.
WebMCP is not the only thing Chrome checks. Agentic browsing also depends on the page being easy to understand and stable to interact with.
Prioritize:
h1main, nav, and footerThese fixes improve the site for humans, search engines, and agents at the same time.
Use Chrome’s experimental Lighthouse Agentic Browsing category to verify the page. In local testing, enable the WebMCP feature flag or pass it through Chrome flags:
lighthouse https://example.com/your-page/ \
--preset=experimental \
--chrome-flags="--enable-features=WebMCP"
Check for:
llms.txtTreat the result as a regression test. If a future redesign removes a tool name, breaks a form label, or adds layout shift, your agent-readiness score should catch it.
Once the first workflow is clean, repeat the process across your highest-intent pages:
The goal is not to expose every possible click. The goal is to expose the actions a serious buyer or researcher would ask an AI agent to complete.
Agent-readiness builds on the same foundation as AI visibility: clear structure, machine-readable signals, and pages that are easy to act on. If you want to see how visible your brand already is across AI answers, and where agent-ready conversion would move the needle, run a free AI visibility audit and we will show you exactly where you stand.