document.modelContext. navigator.modelContext remains a
deprecated compatibility alias, while navigator.modelContextTesting is a
testing and inspection surface. Adapter boundaries reduce migration cost.
See Try the native Chrome preview and
Test native and polyfill.
Upstream sources to track
Use first-party sources for compatibility decisions:
This release line follows those sources by making
document.modelContext the
primary surface, preferring getTools() plus executeTool(), using
AbortSignal for cleanup, and keeping legacy MCP-B helpers as compatibility
APIs.
outputSchema is not part of the current W3C/Chrome WebMCP tool dictionary.
MCP-B keeps it as helper metadata for TypeScript inference, structured MCP
responses, and package/runtime adapters. Do not rely on native browser WebMCP
to validate tool output against it.