webmcp
Use-Webmcp-Tool
https://github.com/GoogleChromeLabs/use-webmcp-tool
A hook that registers a WebMCP tool with the browser and ties its lifecycle to a React component.
WebMCP lets a page expose JavaScript functions as "tools" that an AI agent (browser-built-in, iframe-hosted, or extension) can discover and call. The site author can expose functionality, and the agent uses this instead of scraping the DOM, a11y tree, or using screenshots.
Added 1 day ago