Chromium 156 matched the WebMCP draft on 13 of 19 conformance cases in our showcase site
A static site registers three read-only WebMCP tools that agents call instead of scraping. A real headless Chromium ran them; it matched the draft spec on 13 of 19 cases and differed on 6.
By David Discua
Measured in the lab
- 13/19
- spec cases matched, native Chromium
- 19/19
- spec cases matched, polyfill
- 6/6
- tool results equal to core functions
- 921
- bytes to read 3 tables via the tool
- document.modelContext present with --enable-features=WebMCP
- navigator.modelContext absent in Chromium 156
- Declarative search form answered via respondWith() without navigating
- Permissions-Policy tools=() made registerTool() reject
- JavaScript off: 9 of 9 table rows and 5 of 5 posts rendered
From reports/report.json · run on October 21, 2026. Chromium 156.0.8078.4 headless shell (playwright-core 1.64.1), MCP SDK 1.32.1, Bun 1.4.3; fictional demo content; latency varies by run; the report file carries no timestamp
How it is wired
01/03The page registers three read-only tools with the browser.
WebMCP is a draft from the W3C Web Machine Learning Community Group that lets a web page declare tools, each with a name, a description and a JSON Schema, so a browser agent can call a function instead of guessing at HTML. Our showcase is a small static site with fictional content that registers three read-only tools through document.modelContext, and a test suite drives a real headless Chromium 156 to call them through the browser's own implementation. Every tool returned the same result as the core function, and reading all three tables through the tool took 921 bytes against 8210 bytes of HTML. The catch is that Chromium matched the draft spec on 13 of 19 conformance cases, and no real browser agent was in the loop.
The catch
WebMCP is an origin trial API, and it has already moved once: navigator.modelContext became document.modelContext, so older examples no longer run. In Chromium 156.0.8078.4, six cases differ from the October 20, 2026 draft. A tool that rejects surfaces as UnknownError where the spec says OperationError. A tool that resolves with undefined or a BigInt resolves instead of failing. Calling an unregistered or cross-origin tool gives UnknownError where the spec says NotFoundError. A plain string result comes back without its JSON quotes. Our tools always resolve with plain objects, so none of this changes what an agent gets from this site, but your tools may hit it.
The tests call getTools() and executeTool() the way an in-page agent would. They do not exercise Chrome's built-in agent, Gemini in Chrome or an extension. The run used the headless shell, not branded Chrome, and the command-line switch was found by probing this build. The origin trial token flow is documented and was not exercised. The lab tables are made up for the demo.
What we ran (keyless)
bun install --frozen-lockfile
bun run browsers
bun run probe
bun run call get_lab_measured_table '{"slug":"example-cache-bench"}'
bun run report
From reports/report.json, run on October 21, 2026:
| Measure | Result |
|---|---|
document.modelContext, no launch args | no |
document.modelContext, --enable-features=WebMCP | yes |
navigator.modelContext, any args | no |
executeTool() results equal to the core functions | native 6/6, polyfill 6/6, MCP 6/6 |
| Spec conformance cases matched | native 13/19, polyfill 19/19 |
registerTool() under Permissions-Policy: tools=() | native NotAllowedError |
| Bytes to read all 3 tables | HTML 8210, page text 2618, tool 921, JSON 2693 |
| JavaScript off, rows and posts rendered | 9/9, 5/5 |
Median executeTool() time over 25 calls was 0.3 to 0.4 ms natively, close to the timer resolution in a page that is not cross-origin isolated. The declarative search_posts form answered through SubmitEvent.respondWith() without navigating.
How it is wired
Tool definitions live once in src/core/tools.ts. The page script feature-detects document.modelContext, registers each tool with readOnlyHint: true, and the tool reads the site's own static JSON. The same tools are served over stdio MCP with identical input schemas, and every page still works as plain HTML, as /api/*.json and through llms.txt.
Minilab (open source)
The spec lives at webmachinelearning/webmcp (4,730 stars, Bikeshed, no license GitHub can detect, as of October 24, 2026). Re-run bun run report after any Chromium update and compare the six recorded differences in reports/report.md.
Run it yourself
SkilledDragonCorp/webmcp-showcase
Clone, install and run the report with no API keys. The numbers above are what that run writes.
bun install --frozen-lockfile && bun run browsers && bun run serveSkilledDragon is not affiliated with Google, Chrome, Microsoft, the W3C or the Web Machine Learning Community Group. Numbers are from our own keyless lab run on fictional demo content; re-run the report after any Chromium update. Marks belong to their owners.
All labs