WebMCP · part 1

Agents shouldn't guess how your UI works

Same app, same goal, two agents. One drives the UI with selectors and clicks. The other calls tools the page registers with WebMCP, which run the app's own logic. Then ship a redesign and run them again. Companion demo for the blog post — see README.md.

Agent goal

detecting…

The app

Actuation agent

DOM snapshots, CSS selectors, clicks and keystrokes.

Steps
0
Payload (ch)
0
Tokens
0

    WebMCP agent

    getTools() → read schemas → executeTool().

    Steps
    0
    Payload (ch)
    0
    Tokens
    0

      Payload is the number of characters each agent had to send to or read back from the model: whole DOM snapshots for the actuation agent, tool metadata and JSON for the WebMCP agent. Tokens ≈ characters / 4. A real screenshot-based agent pays for images on top of this.