Now you're the consumer. Turn WebMCP on with one Chrome flag, then use the Google-recommended inspector — and the raw API — to see a page's tools and call one.
You've registered tools as the author (Lesson 2). This lesson flips to the consumer: whatever reads a page's tools and invokes them — a real in-browser agent (Gemini in Chrome), or, for development, the Model Context Tool Inspector extension Chrome recommends.chrome
WebMCP ships behind a flag for local development. Two ways to enable it:
chrome://flags/#enable-webmcp-testing, set it to Enabled, and
relaunch Chrome (Canary 146+).chromeVerify it's live: open DevTools Console and check the entry point exists.
The consumer side mirrors MCP's two verbs, but as in-process JS calls, not JSON-RPC. Read the map:
| You already know (MCP) | WebMCP consumer equivalent |
|---|---|
tools/list (JSON-RPC) | document.modelContext.getTools() |
tools/call (JSON-RPC) | document.modelContext.executeTool(name, input) |
getTools returns RegisteredTool records — name,
description, inputSchema, plus the tool's origin and
window. A real agent uses the descriptions to choose a tool; then supplies input
shaped by inputSchema; then executeTool runs the author's
execute.spec
For development you rarely poke getTools by hand. Chrome recommends the
Model Context Tool Inspector extension: install it from the
Chrome
Web Store, open a page, and it shows you the live registry.chrome It:
execute, see the
returned string.inputSchema early.gemini-3-flash-preview model.Google says Gemini in Chrome will consume WebMCP tools, and early-adopter sites experimenting with it include Expedia, Booking.com, Shopify, Etsy, Instacart, and Target. The inspector is the dev-time stand-in for that production agent.chrome
chrome://flags/#enable-webmcp-testing → Enabled, relaunch.greet tool from Lesson 2.greet should appear. Call it with a name; watch the string come
back.Seeing the same tool through both the extension and executeTool is the "click" moment.
Ask me if the inspector shows nothing — usually the flag or a stale tab.
tools/call?The WebMCP guide on Chrome for Developers (flag, origin trial, and the inspector), and the Model Context Tool Inspector listing. Install it and inspect a tool you registered yourself.