A2A: Discover Agent
a2a_discover_agentDiscover a peer's current capabilities by fetching its agent card, returning its skills and transports, and verifying it is reachable before sending a message.
Instructions
Fetch a peer's agent card from /.well-known/agent-card.json, cache it locally, and return its skills and transports. Always refetches, so it is also how you check whether a peer is up and what it can do NOW — a cached card goes stale the moment the peer restarts. Do this before a2a_send_message to a peer you have not used: the card is what says which A2A binding and URL to speak, and its skill list is what says whether the peer can do the thing at all.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The peer's BASE url, e.g. `http://127.0.0.1:41241`. Not the card path: the client appends /.well-known/agent-card.json itself. Get the list from a2a_list_agents. |