From adk-multi-agent
Use this skill to call a remote A2A (Agent-to-Agent) endpoint from inside an ADK 2.0 agent. Triggers on: "call A2A agent", "consume A2A endpoint", "ADK calls remote agent", "use external agent as a tool", "A2A client", "agent-to-agent client", "remote agent reference". Generates an RemoteA2AAgent (or A2A tool wrapper) bound to the remote agent card URL, ready to drop into a coordinator's sub_agents=[] or tools=[] list.
How this skill is triggered — by the user, by Claude, or both
Slash command
/adk-multi-agent:a2a-protocol-consumerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Make a remote A2A-exposed agent callable from your local ADK 2.0 agent.
Make a remote A2A-exposed agent callable from your local ADK 2.0 agent.
from google.adk.agents import LlmAgent
from google.adk.a2a import RemoteA2AAgent
# Reference a remote A2A agent by its agent card URL
remote_researcher = RemoteA2AAgent(
name="remote_researcher",
agent_card_url="https://research.example.com/.well-known/agent-card",
auth={"type": "bearer", "token_env": "REMOTE_A2A_TOKEN"},
)
coordinator = LlmAgent(
name="coordinator",
model="gemini-2.5-flash",
description="Local coordinator that delegates research to a remote A2A agent.",
instruction="When the user asks for research, delegate to remote_researcher.",
sub_agents=[remote_researcher],
)
root_agent = coordinator
If you'd rather call the remote agent as a tool (single-shot, no delegation):
from google.adk.a2a import a2a_tool
remote_search_tool = a2a_tool(
name="remote_search",
agent_card_url="https://research.example.com/.well-known/agent-card",
description="Run a research query against the external research agent.",
)
root_agent = LlmAgent(
name="local",
model="gemini-2.5-flash",
instruction="Use remote_search for any web research.",
tools=[remote_search_tool],
)
The agent card URL is a JSON document at /.well-known/agent-card describing the remote agent's name, description, capabilities, and auth requirements. ADK reads it on construction.
curl https://remote/.well-known/agent-card returns valid JSON before wiringa2a-protocol-exposer — publish your own ADK agent over A2Anpx claudepluginhub healthcare-ai-consulting-llc/adk-2-toolkit --plugin adk-multi-agentGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.