A2A Agent Tester
Fetch an agent's card, check it, send the agent a message and read the reply — in A2A 1.0 or 0.3, with every request and response on screen.
Enter an agent's URL and press Discover.
How it connects. Agents talk to each other server to server, and most do not send CORS headers, so a web page cannot call them directly.
This tester therefore sends each request from CodeLint's server. That is different from the other tools on this site,
which run entirely in your browser: the URL, the message and any header you add pass through the relay, in memory, and
are not stored or logged. The relay only reaches public HTTPS hostnames — it cannot reach localhost or a private network — and it will only fetch an agent
card from the two well-known discovery paths.
What happens on first contact with an A2A agent
- 1 Discovery —The client fetches
/.well-known/agent-card.jsonfrom the agent's host. The card is a JSON document naming the agent, its skills, the endpoints it listens on and how to authenticate. - 2 Choosing an interface —A 1.0 card lists
supportedInterfaces; the first entry is the agent's preferred one. Each names a URL, a binding (JSONRPC,GRPCorHTTP+JSON) and the protocol version spoken there. One URL may be listed under more than one version. - 3 Sending a message —The client posts a message made of parts. The agent may answer at once with a message, or create a task and report its state.
- 4 Following a task —If the reply is a task that has not finished, the client asks for it again by id, subscribes to a stream, or waits for a push notification — whichever the card says the agent supports.
A2A 1.0 and 0.3 on the wire
The two versions carry the same ideas in different shapes. A client and server on different versions fail in ways that look like bugs.
| A2A 1.0 | A2A 0.3 | |
|---|---|---|
| Endpoint in the card | supportedInterfaces[] with url, protocolBinding, protocolVersion | Top-level url and preferredTransport |
| Version header | A2A-Version: 1.0 on every request | None — an absent header means 0.3 |
| Send a message | SendMessage | message/send |
| Get a task | GetTask | tasks/get |
| Roles | ROLE_USER, ROLE_AGENT | user, agent |
| A text part | { "text": "…" } | { "kind": "text", "text": "…" } |
| A data part | { "data": …, "mediaType": "application/json" } | { "kind": "data", "data": … } |
| Reply | Wrapped: { "message": … } or { "task": … } | The bare message or task, marked with kind |
| Context | A message from the agent must carry a contextId | Optional |
Source: the A2A specification and its 0.3.0 release.
Errors and what they point to
404 on /.well-known/agent-card.json
Cause: The card is not at the well-known path on that host — often it sits beside the endpoint under a sub-path, or only at the old agent.json name.
Fix: Serve the card from the host root at /.well-known/agent-card.json. Discovery uses the host, not the endpoint path.
-32601 Method not found
Cause: The request used the method name of one protocol version and the server implements the other.
Fix: Make the protocolVersion declared for the interface match what the endpoint speaks.
-32009 VersionNotSupportedError
Cause: The A2A-Version header names a version the agent does not implement.
Fix: Send a version the card lists. A server that wants to keep serving 0.3 clients must also accept requests with no version header.
-32001 TaskNotFoundError
Cause: The task id does not exist, has expired, or belongs to another caller. Also returned when a message names a taskId the agent never issued.
Fix: Use the id from the task the agent returned, and do not send a taskId on the first message of a conversation.
-32004 UnsupportedOperationError
Cause: The request asked for something the card says the agent cannot do — typically streaming when capabilities.streaming is false.
Fix: Read the capabilities before choosing a method; fall back to the plain send.
-32005 ContentTypeNotSupportedError
Cause: A part's media type is not one the agent or the skill accepts.
Fix: Send a type listed in the skill's inputModes, or in the card's defaultInputModes if the skill lists none.
HTTP 401 or 403
Cause: The endpoint needs a credential. A well-formed card says which under securitySchemes and securityRequirements.
Fix: Send the credential the card describes. If the card declares none, that is a bug in the card.
The same exchange by hand
What the tester sends to CodeLint's own agent, as curl.
curl -s https://codelint.dev/.well-known/agent-card.jsoncurl -s https://codelint.dev/a2a \
-H 'content-type: application/json' \
-H 'A2A-Version: 1.0' \
-d '{"jsonrpc":"2.0","id":1,"method":"SendMessage","params":{"message":{
"messageId":"m-1","role":"ROLE_USER",
"parts":[{"data":{"skill":"cron_explain","input":{"expression":"0 9 * * 1-5"}},
"mediaType":"application/json"}]}}}'curl -s https://codelint.dev/a2a \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"message/send","params":{"message":{
"kind":"message","messageId":"m-1","role":"user",
"parts":[{"kind":"data","data":{"skill":"cron_explain",
"input":{"expression":"0 9 * * 1-5"}}}]}}}'What the checks cover
- How the card is served —The path it was found at, its content type, whether it carries cache headers (the specification asks for
Cache-ControlandETag), and whether a browser-based client could read it. - The card itself —Required fields, types, URLs, transports, skills, media types and security declarations — the same checks as the agent card validator, for whichever version the card is.
- The endpoint —That at least one interface is declared, that one of them is JSON-RPC, and whether it sits on the same host as the card.
- The reply —That a 1.0 result is wrapped as a message or a task; that the role,
messageIdandcontextIdare present and correct for the version; that each part is shaped the way the version requires; and what state a task is in.
About
The A2A Agent Tester does what another agent does on first contact with an Agent2Agent (A2A) agent. It fetches the agent card from the well-known URL on the agent's host, validates it against the specification, and reads which endpoints and protocol versions the agent offers. It then lets you send a message to the JSON-RPC endpoint — as text or as structured data — in the dialect the card declares, A2A 1.0 or 0.3, and checks that the reply is shaped the way that version requires. Every request and response is recorded so you can see exactly what crossed the wire. Requests are sent from CodeLint's server, because agents talk server to server and a browser cannot reach most of them directly.
How to use
- 1 Enter the agent's URL — the host is enough — and press Discover. The page opens on a test of CodeLint's own agent so you can see a complete report first.
- 2 Read "Discovery checks" for how the card is served and which endpoint will be used, and "Agent card checks" for errors and warnings in the card itself.
- 3 Pick a skill to load its example into the message box, or type your own. Text is sent as a text part; valid JSON is sent as a structured data part.
- 4 Press "Send message". The reply is shown part by part, with checks on its role, identifiers and shape. If the agent created a task that is still running, use "Check task".
- 5 Open any row under "What was sent and received" for the exact request and response, or copy the request as curl.
- Where does the tester look for the agent card?
- At /.well-known/agent-card.json on the host you enter, which is where both A2A 1.0 and 0.3 place it. If that returns 404 it tries /.well-known/agent.json, the path earlier drafts used, and warns if the card is only there. You can also paste a full card URL as long as it ends in one of those two paths. For a card kept anywhere else, paste its JSON into the agent card builder and validator instead.
- How does it decide whether to speak A2A 1.0 or 0.3?
- From the card. A 1.0 card lists its endpoints in supportedInterfaces, each with a protocolVersion; a 0.3 card has a single top-level url. If an agent offers both versions the tester uses 1.0. For 1.0 it sends the A2A-Version: 1.0 header and the SendMessage method; for 0.3 it sends no version header and the message/send method — the specification says a request with no version header must be treated as 0.3.
- The agent returned "Method not found". What does that mean?
- Almost always a version mismatch between the card and the endpoint: the card declares one protocol version and the server implements the other. A 1.0 server does not know message/send and a 0.3 server does not know SendMessage. Check that the protocolVersion on the interface matches what the endpoint actually speaks.
- Can it test streaming or push notifications?
- No. It sends one non-streaming message and reads one reply. If the agent answers with a task that is not finished, "Check task" asks for the task again by id, but the tester does not hold a stream open or receive webhooks. The card's capabilities section still shows whether the agent claims to support them.
- Does it work with gRPC or HTTP+JSON agents?
- It reads and validates their card, but it only sends messages over the JSON-RPC binding. If the card offers no JSON-RPC interface the tester says so and stops after discovery.
- Is the message or token I send stored?
- No. They pass through CodeLint's relay in memory on the way to the agent and are discarded when the request finishes; nothing is logged, and credentials are masked in the on-page log. Because they do pass through a third party in transit, use a test credential rather than a production one.
More in AI Tools
See all ai tools.