WebMCP allows web applications to expose JavaScript functions as tools that AI agents can discover and invoke.
- Sites register tools via
navigator.modelContext.registerTool() with name, description, JSON schema, and execute callback.- Agents call tools to perform actions; tools can request user confirmation.
- Currently a draft by the W3C Community Group, not a formal web standard.