Work

Agent Page Protocol

How does an agent know what it can do on a page?

A protocol where a web page is served as a typed JSON manifest that an agent reads directly. This portfolio publishes one for every project.

Status
Experimental
First public commit
Last reviewed

See this as an agent reads itOpen raw manifest

The problem

Web pages are built for eyes. An agent that wants the same information has to work backwards from HTML, screenshots or the accessibility tree, and guess what each button does.

/state/problem

What it does

With Agent Page Protocol a page is served as a manifest of typed state, declared actions and navigation. The switch at the top of this site shows that manifest next to the page it describes.2

/state/outcome

My part

I wrote the specification and the reference implementation. The public history has 36 commits, 33 of them mine and three from JM. The first commit is dated 30 July 2026.

/state/role

One decision

Every value in a manifest uses one of a small fixed set of types such as string, number, date or table. I chose that over attaching a full JSON Schema to each field.

/state/decision

What I chose against

Full JSON Schema on every node would describe each value more richly. It would also inflate every page and every token an agent spends reading it. Detailed validation sits on action inputs, where a wrong value costs something.

/state/alternative

In practice

The repository holds the specification, JSON Schemas for each wire document, a server, a client SDK, a command line tool, an MCP server and a Chrome extension that renders manifests for people. Its README reports 435 passing tests, 142 of them protocol conformance vectors.1

/state/in_practice

Limits

The protocol is a draft and the specification still changes. This portfolio uses only the reading half, which is discovery, manifests and navigation. It declares no actions, because nothing here needs one.

/state/limitation

Something to inspect

The manifest this page is generated from. A cropped excerpt of this project’s own manifest. The full document is one link away.
{
  "app": "1.1",
  "page": {
    "id": "work-agent-page-protocol",
    "url": "https://portfolio-website-gamma-two-49.vercel.app/work/agent-page-protocol/manifest.app.json",
    "version": "rev-5be48d0bc6c4",
    "title": "Agent Page Protocol · Moses Man",
    "language": "en-GB",
    "description": "A protocol where a web page is served as a typed JSON manifest that an agent reads directly. This portfolio publishes one for every project."
  },
  "state": {
    "title": {
      "type": "string",
      "value": "Agent Page Protocol",
      "label": "Project title"
    },
    "status": {
      "type": "enum",
      "value": "experimental",
      "options": [
        "shipped",
        "building",
        "experimental",
        "archived"
      ],
      "label": "Status"
    },
    "decision": {
      "type": "string",
      "value": "Every value in a manifest uses one of a small fixed set of types such as string, number, date or table. I chose that over attaching a full JSON Schema to each field.",
      "label": "One decision"
    },
    "…": "13 more typed fields"
  }
}

Evidence

  1. The reference implementation reports 435 passing tests.

    6 workspaces, 435 tests green (conformance: 142 protocol vectors).

    Open the exact passage · gitlab.com/mosesman831/agent-page-protocol README.md at c07e31d

  2. One manifest serves both the agent and the human reader.

    Agents consume the manifest natively. Humans consume it through a Renderer.

    Open the exact passage · gitlab.com/mosesman831/agent-page-protocol SPEC.md §1.1 at c07e31d

Credits

  • JM. Three commits in the public history