<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/from-dom-scraping-to-contracts-understanding-webmcp-part-1--nevl1du6v" -->

---
title: From DOM Scraping to Contracts: Understanding WebMCP...
description: WebMCP is a proposed W3C web standard, incubated with engineers from Google and Microsoft, that lets web pages expose their functionality to AI agents as...
canonical: https://daily.dev/posts/from-dom-scraping-to-contracts-understanding-webmcp-part-1--nevl1du6v
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: From DOM Scraping to Contracts: Understanding WebMCP (Part 1) | daily.dev
og:description: WebMCP is a proposed W3C web standard, incubated with engineers from Google and Microsoft, that lets web pages expose their functionality to AI agents as...
og:url: https://daily.dev/posts/from-dom-scraping-to-contracts-understanding-webmcp-part-1--nevl1du6v
og:image: https://api.daily.dev/og/posts/nEvl1du6v.png
og:image:alt: From DOM Scraping to Contracts: Understanding WebMCP (Part 1)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# From DOM Scraping to Contracts: Understanding WebMCP (Part 1)

**[Angular.love](https://daily.dev/sources/angularlove)** · 10 min read · 0 upvotes · 0 comments

## Summary

WebMCP is a proposed W3C web standard, incubated with engineers from Google and Microsoft, that lets web pages expose their functionality to AI agents as structured, schema-typed tools rather than forcing agents to reverse-engineer the UI through DOM scraping, screenshots, or accessibility trees. It defines an imperative JavaScript API (document.modelContext.registerTool) and a declarative HTML form-annotation API, both still experimental and actively changing—Chrome's namespace has already shifted from window.agent to navigator.modelContext (now deprecated as of Chrome 150) to document.modelContext. WebMCP is explicitly not MCP's wire protocol, not designed for headless autonomous agents, and does not replace backend MCP servers; it addresses UI disintermediation, state/auth replication, and developer burden that backend-only MCP approaches carry. Cross-origin tool exposure is locked down by default via Permissions Policy and origin isolation. The piece frames WebMCP as a third pattern between classic MCP's strict schemas and skills' progressive disclosure: contextual tools scoped to the current page, route, or component. Angular is called out as the first major framework shipping experimental built-in support, to be covered in a follow-up piece.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://angular.love/from-dom-scraping-to-contracts-understanding-webmcp-part-1>

## Questions this post answers

### Is navigator.modelContext deprecated in Chrome's WebMCP implementation?

Yes, Chrome's official documentation states that navigator.modelContext is deprecated as of Chrome 150 in favor of document.modelContext. The WebMCP proposal's namespace has already changed twice: from the earliest window.agent draft, to navigator.modelContext, to the current document.modelContext, reflecting how early and unstable the specification still is.

_Anyone prototyping with WebMCP can track spec churn like this through daily.dev before shipping code that breaks._

### What is the difference between WebMCP and the Model Context Protocol (MCP)?

WebMCP does not implement MCP's wire protocol; there is no JSON-RPC and no client-server transport, only the tools concept is shared. A WebMCP-enabled page is merely analogous to an MCP server, existing only as long as the browser tab does, whereas classic MCP servers run separately with their own auth and state replication.

_Developers weighing WebMCP against backend MCP servers can follow the tradeoffs on daily.dev._

### Can AI agents autonomously call WebMCP tools without a human confirming the action?

No, WebMCP is explicitly designed for human-in-the-loop use, not headless or fully autonomous agents. The declarative form API even makes autosubmission opt-in via a toolautosubmit attribute; without it, the agent fills form fields but a human must click submit, and sensitive actions are expected to route through user confirmation.

_Teams building agent-facing UI can watch how human-in-the-loop patterns evolve via daily.dev._

## Similar posts on daily.dev

- [WebMCP: Optimize Your Website for AI Agents](https://daily.dev/posts/webmcp-optimize-your-website-for-ai-agents-3ewweawaw) · DebugBear · 1 upvotes · 0 comments
- [WebMCP Standard Proposal for Agentic Web Actuation Now Available in Chrome \(Origin Trials\)](https://daily.dev/posts/webmcp-standard-proposal-for-agentic-web-actuation-now-available-in-chrome-origin-trials--fg6zivrq4) · InfoQ · 0 upvotes · 0 comments
- [WebMCP Explained: How Developers Can Prepare Websites for AI Agents](https://daily.dev/posts/webmcp-explained-how-developers-can-prepare-websites-for-ai-agents-yyokz9lqj) · SitePoint · 2 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#angular](https://daily.dev/tags/angular), [#mcp](https://daily.dev/tags/mcp), [#webdev](https://daily.dev/tags/webdev), [#webmcp](https://daily.dev/tags/webmcp)

[View this post on daily.dev](https://daily.dev/posts/from-dom-scraping-to-contracts-understanding-webmcp-part-1--nevl1du6v)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"From DOM Scraping to Contracts: Understanding WebMCP (Part 1)","url":"https://daily.dev/posts/from-dom-scraping-to-contracts-understanding-webmcp-part-1--nevl1du6v","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/from-dom-scraping-to-contracts-understanding-webmcp-part-1--nevl1du6v"},"datePublished":"2026-09-20T07:44:35.338Z","dateModified":"2026-10-15T02:22:33.015Z","description":"WebMCP is a proposed W3C web standard, incubated with engineers from Google and Microsoft, that lets web pages expose their functionality to AI agents as...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6870a9fc19e80515aaf50c6fcf547d93?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6870a9fc19e80515aaf50c6fcf547d93?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Angular.love","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Angular.love","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/b638946cd9c74bf6a260e4e6a40212d7","url":"https://daily.dev/sources/angularlove"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/from-dom-scraping-to-contracts-understanding-webmcp-part-1--nevl1du6v","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,angular,mcp,webdev,webmcp","timeRequired":"PT10M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Angular.love","item":"https://daily.dev/sources/angularlove"},{"@type":"ListItem","position":3,"name":"From DOM Scraping to Contracts: Understanding WebMCP (Part 1)"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/from-dom-scraping-to-contracts-understanding-webmcp-part-1--nevl1du6v#faq","mainEntity":[{"@type":"Question","name":"Is navigator.modelContext deprecated in Chrome's WebMCP implementation?","acceptedAnswer":{"@type":"Answer","text":"Yes, Chrome's official documentation states that navigator.modelContext is deprecated as of Chrome 150 in favor of document.modelContext. The WebMCP proposal's namespace has already changed twice: from the earliest window.agent draft, to navigator.modelContext, to the current document.modelContext, reflecting how early and unstable the specification still is. Anyone prototyping with WebMCP can track spec churn like this through daily.dev before shipping code that breaks."}},{"@type":"Question","name":"What is the difference between WebMCP and the Model Context Protocol (MCP)?","acceptedAnswer":{"@type":"Answer","text":"WebMCP does not implement MCP's wire protocol; there is no JSON-RPC and no client-server transport, only the tools concept is shared. A WebMCP-enabled page is merely analogous to an MCP server, existing only as long as the browser tab does, whereas classic MCP servers run separately with their own auth and state replication. Developers weighing WebMCP against backend MCP servers can follow the tradeoffs on daily.dev."}},{"@type":"Question","name":"Can AI agents autonomously call WebMCP tools without a human confirming the action?","acceptedAnswer":{"@type":"Answer","text":"No, WebMCP is explicitly designed for human-in-the-loop use, not headless or fully autonomous agents. The declarative form API even makes autosubmission opt-in via a toolautosubmit attribute; without it, the agent fills form fields but a human must click submit, and sensitive actions are expected to route through user confirmation. Teams building agent-facing UI can watch how human-in-the-loop patterns evolve via daily.dev."}}]}
```

