What is the agents.json Specification?
masterThe agents.json Specification (current version 0.1.0) is an open specification designed to formally describe contracts for API and agent interactions. It is built on top of the OpenAPI standard but optimized for LLM consumption.
While OpenAPI describes how endpoints work, agents.json adds structured contracts that help AI agents understand how to execute multi-step workflows. Key additions include:
- Optimized Schema: Updated descriptions and added examples specifically for LLM argument generation and endpoint discovery.
- Flows: Contracts consisting of one or more API calls that describe a specific outcome (e.g., instead of searching for an email and then replying, a single 'flow' can handle the entire task).
- Links: Definitions of how different actions are stitched together, allowing agents to understand the sequence of operations required to achieve a goal.
It is proposed that agents.json files be placed in /.well-known/agents.json for easy discovery by agents.