What Are agent.json and agents.json Discovery Files?
Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team
The short answer: They are proposed discovery documents: a small JSON file, published at a findable path (typically the site root or under /.well-known/), in which a store declares its agent-relevant facts in one place — name, canonical URL, links to its API documentation, openapi.json, product feed, and agent policy. AXO's endpoint hint list includes both agent.json and agents.json among the references its scorer credits. There is no single settled schema yet, which makes the content principles matter more than the field names: publish the map, keep it consistent with everything else, and link it from your developers page. See how the audit reads your discovery layer in the free audit.
What is an agent.json file?
An agent.json (or agents.json) file is a machine-readable discovery document a site publishes to describe how agents should interact with it: identity (name, url), pointers to its API documentation and OpenAPI description, its product feed, and its agent policy. It is a manifest for the machine layer — one file an arriving agent can fetch to learn where everything else lives.
Why a manifest exists at all
An agent arriving at a store faces a scavenger hunt: the feed is linked from the head, the docs from the footer, the policy under /.well-known/, the OpenAPI file at the API root. Each is findable; together they cost the agent a dozen fetches and inferences. A manifest collapses the hunt into one fetch with explicit pointers — the difference between a building with a directory in the lobby and a building where you knock on doors.
Manifests also serve the store: the file is a single artefact to keep correct, diffable in version control, whose review forces the question 'is our published map still true?' Keeping five surfaces consistent is a discipline; keeping one manifest that points at them is a checklist. The manifest does not replace the surfaces — it indexes them.
What to put in it
Identity first: the store's name and canonical URL (mirroring your Organization markup — the same facts, never divergent). Then pointers, each a labelled URL: api_docs (your developers page), openapi (the description file), product_feed (with its format), agent_policy (the well-known policy file and/or the readable page), and contact for agent/integration questions. Where your stack supports it, a capabilities list naming the surfaces you run (product API, cart API, order API, MCP) in plain words.
Write values as absolute URLs on your canonical domain. Relative pointers in a manifest fetched from a mirror or a www/non-www variant create exactly the ambiguity the manifest exists to remove. And keep the file small: a manifest that tries to be a manual will rot like one. Pointers and facts, nothing else.
Naming and placement: agent.json vs agents.json
Both spellings circulate — agent.json (the singular, matching agent-policy.json's stem) and agents.json (the plural used by some discovery proposals) — and AXO's hint list credits references to either. The pragmatic move: publish your manifest at one canonical path (root or /.well-known/), and if your server makes it cheap, serve the same document at the other spelling too, so any consumer's convention finds it. Consistency of content across spellings is mandatory; two manifests that disagree are worse than one.
Whichever paths you choose, the developers page links the manifest explicitly, and the manifest links back to the developers page. Cross-linked discovery artefacts corroborate each other; an agent that finds the same map from two directions trusts the territory more. This is discoverability's version of the two-layer markup principle.
Relationship to policy and OpenAPI
Three documents, three jobs — do not merge them. openapi.json describes how to call the APIs (operations, schemas). agent-policy.json states the rules (what agents may do, limits, terms). agent.json is the directory (where those documents and surfaces live, and who operates the store). Merging policy into the manifest or API detail into the manifest produces a file that does all jobs badly and ages at the fastest rate of any of them.
The clean test: each file should be updatable by its natural owner without editing the others. Developers change the API → openapi regenerates. Terms change → policy updates. A surface moves or a new one launches → the manifest's pointer changes. If your file layout forces joint edits, the boundaries are wrong. The policy guide and the OpenAPI guide cover the other two documents.
An unsettled standard, handled professionally
Candour: unlike robots.txt or OpenAPI, agent discovery files do not yet have one universally ratified schema. That is a reason to keep your manifest simple and standards-shaped (identity plus labelled pointers, in the shapes current proposals use), not a reason to omit it. AXO credits its presence as a discovery signal today; agents that look for manifests will find a sensible one; those that do not lose nothing.
What you must not do is invent a baroque private schema and call it a standard, or publish a manifest whose claims outrun your surfaces ('order API: yes' when none exists). In an unsettled area, honesty and simplicity are the interoperability strategy: any future standard's migration from a truthful pointer file is an afternoon; from an inflated one, it is an archaeology project.
Maintaining the manifest
Put the file in version control with your store's configuration, review it whenever a surface launches, moves, or retires, and add it to the same monthly spot-check as the feed: fetch it, click every pointer, confirm each target loads and matches its label. A manifest pointing at a 404'd docs page is a small broken promise in the exact location agents go to learn whether you keep promises.
Then confirm the audit sees the discovery layer: paste a page that references the manifest (your developers page is the natural carrier) into the free audit and watch for the agent.json credit among the endpoint references. Small file, small points, outsized signal: of all the artefacts in the machine layer, the manifest is the one that says you think about agents as a audience with a front door.
The 5-action manifest routine
- Publish one canonical manifest (agent.json), and serve the same document at agents.json too if cheap.
- Content: identity plus pointers — name, canonical URL, developers page, openapi.json, product feed, agent policy, contact; absolute URLs only.
- Keep the three documents separate: manifest = directory, openapi = how to call, policy = the rules.
- Cross-link: developers page links the manifest; the manifest links back; policy and docs referenced consistently.
- Review monthly with the feed check: fetch it, click every pointer, fix or remove anything stale.
Worked example: the lobby directory that ended the scavenger hunt
Example — fictional, for illustration. An integrator evaluating a tools store spends a morning assembling its machine layer from five places: feed linked in the head of a category page, docs behind a footer link labelled 'Company', OpenAPI on the API subdomain found via a blog post, policy at the well-known path, contact from a WHOIS lookup. The store has every surface; the integration nearly dies of assembly cost, and the integrator's notes describe the store as 'probably not serious about agents'.
The store ships a manifest the following week — one JSON file, eleven pointers, generated from the same configuration as its developers page — and links it from the docs. The next integrator's evaluation takes twenty minutes, most of it testing the actual endpoints. Nothing about the store's capabilities changed. What changed is that the capabilities became a place, and places are what agents — and the humans who build for them — can work with.
Related guides and the standing invitation
Companion reading for this topic: Why Publish openapi.json for Agent Discovery? · Why Link Developer Docs From Your Storefront Footer? · What Is /.well-known/agent-policy.json? · What Belongs in Your Store's /.well-known/ Directory?.
Whatever this guide led you to change, prove it the way every guide in this series ends: re-run the free audit on the same page and compare the dimension it names, read how the audit works if a finding is unclear, and see plans if you want the full guidance report and re-audit history while you work. A change you have not re-measured is a hope, not a fix.
Sources
- RFC 8615 — Well-Known URIs — IETF RFC 8615 (2019), the standard that defines /.well-known/ discovery paths.
- OpenAPI Specification v3.1.0 — the OpenAPI Initiative's API description standard, version 3.1.0 (2021) — the format openapi.json files follow.
- How the AXO audit works — AXO documentation — AXO's own documentation of the audit engine, its five dimensions and its scoring (current as of 2026).
Frequently asked questions
What goes in an agent.json file?
Identity (store name, canonical URL) and labelled pointers to your machine layer: developers page, openapi.json, product feed (with format), agent policy, and an integration contact — plus a plain-words capabilities list if you run several surfaces. Absolute URLs, kept small and current.
agent.json or agents.json — which spelling?
Both circulate, and AXO's endpoint scan recognises references to either. Publish one canonical file and, if cheap, serve the identical document at the other spelling so any consumer's convention finds it. The two must never disagree.
Is there an official schema for it?
Not a single ratified one yet — discovery-file proposals are still converging. Keep yours simple and standards-shaped (identity plus pointers), honest about what exists, and migration to any future standard will be trivial.
How is agent.json different from agent-policy.json?
Different jobs. agent.json is the directory: where your surfaces and documents live. agent-policy.json is the rules: what agents may do, limits, and terms. Do not merge them; each should be updatable by its owner without editing the other.
Does AXO require a manifest?
No. It is one credited discovery reference among the endpoint hints — valuable because it collapses an agent's scavenger hunt into one fetch, but the dimension is fully achievable through docs links, endpoint references, and the other surfaces.