Sim

A2A

Interact with external A2A-compatible agents

The A2A (Agent-to-Agent) protocol enables Sim to interact with external AI agents and systems that implement A2A-compatible APIs. With A2A, you can connect Sim’s automations and workflows to remote agents—such as LLM-powered bots, microservices, and other AI-based tools—using a standardized messaging format.

Using the A2A tools in Sim, you can:

  • Send Messages to External Agents: Communicate directly with remote agents, providing prompts, commands, or data.
  • Receive and Stream Responses: Get structured responses, artifacts, or real-time updates from the agent as the task progresses.
  • Continue Conversations or Tasks: Carry on multi-turn conversations or workflows by referencing task and context IDs.
  • Integrate Third-Party AI and Automation: Leverage external A2A-compatible services as part of your Sim workflows.

These features allow you to build advanced workflows that combine Sim’s native capabilities with the intelligence and automation of external AIs or custom agents. To use A2A integrations, you’ll need the external agent’s endpoint URL and, if required, an API key or credentials.

Usage Instructions

Use the A2A (Agent-to-Agent) protocol to interact with external AI agents.

Tools

a2a_send_message

Send a message to an external A2A-compatible agent.

Input

ParameterTypeRequiredDescription
agentUrlstringYesThe A2A agent endpoint URL
messagestringYesMessage to send to the agent
taskIdstringNoTask ID for continuing an existing task
contextIdstringNoContext ID for conversation continuity
apiKeystringNoAPI key for authentication

Output

ParameterTypeDescription
contentstringThe text response from the agent
taskIdstringTask ID for follow-up interactions
contextIdstringContext ID for conversation continuity
statestringTask state
artifactsarrayStructured output artifacts
historyarrayFull message history

a2a_get_task

Query the status of an existing A2A task.

Input

ParameterTypeRequiredDescription
agentUrlstringYesThe A2A agent endpoint URL
taskIdstringYesTask ID to query
apiKeystringNoAPI key for authentication
historyLengthnumberNoNumber of history messages to include

Output

ParameterTypeDescription
taskIdstringTask ID
contextIdstringContext ID
statestringTask state
artifactsarrayOutput artifacts
historyarrayMessage history

a2a_cancel_task

Cancel a running A2A task.

Input

ParameterTypeRequiredDescription
agentUrlstringYesThe A2A agent endpoint URL
taskIdstringYesTask ID to cancel
apiKeystringNoAPI key for authentication

Output

ParameterTypeDescription
cancelledbooleanWhether cancellation was successful
statestringTask state after cancellation

a2a_get_agent_card

Fetch the Agent Card (discovery document) for an A2A agent.

Input

ParameterTypeRequiredDescription
agentUrlstringYesThe A2A agent endpoint URL
apiKeystringNoAPI key for authentication (if required)

Output

ParameterTypeDescription
namestringAgent name
descriptionstringAgent description
urlstringAgent endpoint URL
versionstringAgent version
capabilitiesobjectAgent capabilities (streaming, pushNotifications, etc.)
skillsarraySkills the agent can perform
defaultInputModesarrayDefault input modes (text, file, data)
defaultOutputModesarrayDefault output modes (text, file, data)

a2a_resubscribe

Reconnect to an ongoing A2A task stream after connection interruption.

Input

ParameterTypeRequiredDescription
agentUrlstringYesThe A2A agent endpoint URL
taskIdstringYesTask ID to resubscribe to
apiKeystringNoAPI key for authentication

Output

ParameterTypeDescription
taskIdstringTask ID
contextIdstringContext ID
statestringCurrent task state
isRunningbooleanWhether the task is still running
artifactsarrayOutput artifacts
historyarrayMessage history

a2a_set_push_notification

Configure a webhook to receive task update notifications.

Input

ParameterTypeRequiredDescription
agentUrlstringYesThe A2A agent endpoint URL
taskIdstringYesTask ID to configure notifications for
webhookUrlstringYesHTTPS webhook URL to receive notifications
tokenstringNoToken for webhook validation
apiKeystringNoAPI key for authentication

Output

ParameterTypeDescription
urlstringConfigured webhook URL
tokenstringToken for webhook validation
successbooleanWhether configuration was successful

a2a_get_push_notification

Get the push notification webhook configuration for a task.

Input

ParameterTypeRequiredDescription
agentUrlstringYesThe A2A agent endpoint URL
taskIdstringYesTask ID to get notification config for
apiKeystringNoAPI key for authentication

Output

ParameterTypeDescription
urlstringConfigured webhook URL
tokenstringToken for webhook validation
existsbooleanWhether a push notification config exists

a2a_delete_push_notification

Delete the push notification webhook configuration for a task.

Input

ParameterTypeRequiredDescription
agentUrlstringYesThe A2A agent endpoint URL
taskIdstringYesTask ID to delete notification config for
pushNotificationConfigIdstringNoPush notification configuration ID to delete (optional - server can derive from taskId)
apiKeystringNoAPI key for authentication

Output

ParameterTypeDescription
successbooleanWhether deletion was successful

Notes

  • Category: tools
  • Type: a2a
On this page

On this page

Start building today
Trusted by over 60,000 builders.
Build Agentic workflows visually on a drag-and-drop canvas or with natural language.
Get started