Skip to main content
The declarative proposal turns annotated HTML forms into agent-readable tools while preserving browser validation and user review. The Community Group draft’s declarative section is still an explicit TODO, so Chrome’s current implementation defines the practical compatibility target.
Agent-readable search form
The attribute names, schema synthesis rules, constraint mapping, submission behavior, and iframe model are still evolving. Use Chrome’s Declarative API docs for current browser behavior. Track the Community Group declarative draft section and declarative explainer for proposal status. Do not treat this example as a stable compatibility contract. @mcp-b/webmcp-polyfill implements the tested local-document subset and documents its native-only gaps. React users can write these attributes directly after importing @mcp-b/react-webmcp. For imperative JavaScript registration, use document.modelContext.registerTool().