Interactive explainer
One search capability, two interfaces.
The human form works everywhere. When document.modelContext is available, the same search operation is also registered as a typed tool for agents.
Human interface
Accessible HTMLSubmit the ordinary form to see a result.
Agent interface
WebMCP toolThe simulated agent will call the same search function.
Checking browser support
No WebMCP support? The human form still works. The demo uses a local simulator for the agent view.