send_a2a_message
Send a message to an A2A agent and get its final text reply. Continue conversations by passing back task and context IDs from previous responses.
Instructions
Send a message to an A2A agent and return its final text response.
The response ends with an [a2a task_id=... context_id=...] line. To
continue the same conversation -- in particular to answer a
[task input-required] question -- pass those ids back via the
task_id / context_id arguments on the next call; omitting them
starts a fresh task.
Long-running agent pipelines are expected: progress notifications are emitted while the task runs, so tune A2A_TIMEOUT_SECONDS rather than treating a slow response as a hang. If the call does time out after the task started, the error names the task_id -- the task keeps running server-side and get_a2a_task can retrieve its result.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message": "<message>"
},
"name": "send_a2a_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| task_id | No | ||
| agent_url | No | http://localhost:8001 | |
| context_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |