Canonical surface
New code usesdocument.modelContext.
getTools() and executeTool() are the producer-facing discovery and execution
path in Chrome’s current preview. registerTool() returns Promise<void>, and
tool cleanup is tied to the optional AbortSignal passed at registration time.
Compatibility
navigator.modelContextis a deprecated alias for migration.navigator.modelContextTestingis a compatibility surface for testing.listTools(), deprecatedcallTool()compatibility helpers, prompts, resources, sampling, elicitation, and transports are MCP-B extensions.outputSchemais not part of the current W3C/Chrome WebMCP tool dictionary. MCP-B packages expose it as helper metadata for type inference, structured MCP responses, and polyfill/runtime adapters.
@mcp-b/webmcp-polyfill for the
portable strict runtime.