Problem
No WebMCP tools detected on page load. AI agents operating in the browser cannot discover or invoke site actions.
Goal
Expose key site actions to browser-based AI agents via the WebMCP API.
Fix
Implement the WebMCP API by calling navigator.modelContext.provideContext() with tool definitions. Each tool requires:
name
description
inputSchema (JSON Schema)
execute callback function
References
Problem
No WebMCP tools detected on page load. AI agents operating in the browser cannot discover or invoke site actions.
Goal
Expose key site actions to browser-based AI agents via the WebMCP API.
Fix
Implement the WebMCP API by calling
navigator.modelContext.provideContext()with tool definitions. Each tool requires:namedescriptioninputSchema(JSON Schema)executecallback functionReferences