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 HTML
Submit the ordinary form to see a result.

Agent interface

WebMCP tool

        
        
The 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.