AGENT PAGE PROTOCOL · v1.1

Web pages for agents. Rendered for humans.

APP replaces HTML/DOM as the unit a page serves: a typed JSON page manifest with declared actions. One document — agents read it directly, the Chrome extension renders it as a normal site.

this page is an APP document — ingest it
curl -H 'Accept: application/vnd.agent-page+json' \
     https://agent-page-protocol.vercel.app/

You're reading the HTML edition. With the extension, / itself renders as this page. Install: unzip → chrome://extensions → Developer mode → Load unpacked.

Connect

Give it to your agent

Three ways in — same protocol underneath. Copy a block, paste it where your agent lives.

Prompts point your agent at docs/agent-setup.md — MCP server install, CLI path, verify steps.

install the MCP server
# 1. build the server once:
git clone https://github.com/mosesman831/agent-page-protocol && cd agent-page-protocol
npm ci && npm run build

# 2. add to your MCP client config:
{
  "mcpServers": {
    "agent-page": {
      "command": "node",
      "args": ["/path/to/agent-page-protocol/packages/mcp/dist/bin.js"]
    }
  }
}
act on a page — one declared action, typed params
POST /app/ba/home
Content-Type: application/vnd.agent-page-action+json

{"app":"1.1","action":"search_flights",
 "params":{"from":"lhr","to":"jfk","depart":"2026-10-05"}}

Adopt

Migrate your site with an agent

Copy the prompt, paste it into your coding agent (Cursor, Copilot, Claude Code, Devin). It asks one question — full migration or canonical + auto-negotiation — pulls the live schema, then walks the matching guide.

view prompt source

Why

What a manifest buys you

Over a DOM.

Features

Protocol surface

Everything below is implemented and conformance-tested in this repo.

Benchmarks

Measured, not claimed

Same flight-booking content in both representations — reproduce with node benchmarks/run.mjs. Measured run: 2026-09-26, localhost, Node 24.

MetricHTML / DOMAPPNote
Page transfer~328 KB3.3 KB~100× smaller, same content
Full booking flow40+ DOM interactions7 round tripssearch → filter → select → book → confirm
Tokens per page~891 (doc only)~833doc parity — transfer is the win
Sequential updatesfull re-fetch each step88.9% bytes saved10 diffs (3.7 KB) vs 10 re-fetches (33.3 KB)
Cache revalidation—0-byte bodyETag → 304, measured
Flow latency (p50)—~6.6 mssum of step p50s, localhost

Methodology + runner: benchmarks/. Production sites skew further in APP's favor (100 KB–2 MB pages, heavier JS).

Schemas

Manifest schemas

JSON Schema (draft 2020-12) for every wire document — enforced by the test suite.

a page manifest — what GET returns
{"app":"1.1",
 "page":{"id":"app_home","url":"...","title":"Agent Page Protocol","version":"app-landing-1"},
 "state":{"headline":{"type":"string","value":"Web pages as JSON manifests…"}, …},
 "actions":{"ingest_manifest":{"kind":"navigate","side_effect":"safe",…}},
 "present":{"layout":"detail","sections":[…]}}

Mechanics

How it works