WebMCP · part 2

Your forms are already tools

Two ordinary HTML forms with a few extra attributes (toolname, tooldescription, toolparamdescription, toolautosubmit). An agent fills them from their markup alone; a human sees normal forms. JavaScript only comes in to answer the agent without navigating. Companion demo for the blog post — see README.md.

Page script skipped (?nojs). The forms behave as if JavaScript were disabled: the passenger stepper stays a plain number input, and submitting navigates to submitted.html with a normal GET. For the real thing, disable JavaScript in DevTools. Back to the full demo.

Agent goal

detecting… Declarative tools always run on the in-page shim: there's no documented way to feature-detect the declarative API.

The app

SkyFare plain <form>s
Passengers

    The agent filled this form. Review it, then confirm.

    Fill either form yourself: same markup, same submit handler, no agent involved.

    Simulated agent

    Discover forms-as-tools → fill them → auto-submit or wait for you.

    Tools
    0
    Tool calls
    0
    Human reviews
    0

      Schema inspector

      Re-synthesized live from the markup (MutationObserver).

      Our approximation of input schema synthesis — the real algorithm is TBD.