Agent to Agent. The card, the call, the task.

How to use Agent2Agent: fetch the Agent Card, call SendMessage over JSON-RPC, and follow task states through a terminal result.

Discover
GET /.well-known/agent-card.json. Read skills and supportedInterfaces.
Bind
Call the first interface you can speak. Its URL is the endpoint.
Send
JSON-RPC SendMessage with ROLE_USER and one part. Auth stays in the HTTP header.
Result
A Task you can track, or a Message when the reply is immediate. Output lives in artifacts.
Follow
GetTask, stream, or webhook. Reply on the same taskId when the state is INPUT_REQUIRED.
Stop
COMPLETED, FAILED, CANCELED, and REJECTED reject another message. A part is text, raw, url, or data.