WebMCP · JavaScript examples

WebMCP JavaScript examples you can run.

Small, independently selectable examples using fictional data. No account access, purchases or messages.

Try a result in one minute

Select a sample below, then run the manual handler or the explicitly enabled tool path. Valid input returns one desk lamp; invalid input is rejected; an empty search is a successful empty result.

Valid sample: lamp, maximum price 50 → lamp-01.

Choose an example

Result and execution path

Choose an example and run it.

Verify what happened

The manual control calls the application handler directly. “Discover and invoke tool” uses getTools and executeTool with the discovered Tool object on the detected API. Polyfill execution is an experiment, not native browser-agent verification.

Source, tests and setup · Current draft

Choose your next step

Review readiness evidence · Download security test cases · Find current API references

Review this fictional draft

Recipient:

Approval records the reviewed draft in this page only. Nothing is sent. Review expires after 60 seconds.