message command group provides functionality to send messages to A2A agents and receive responses, with support for streaming, sessions, and authentication.
send
Send a message to an agent and receive a response.Arguments
URL of the A2A agent to send the message to
Message text to send to the agent
Options
Stream responses in real-time. Short form:
-sContext ID for conversation continuity. Use this to continue a previous conversation thread.
Task ID to continue. Allows you to resume or continue an existing task.
Continue from saved session. Uses the context ID and task ID from the last interaction with this agent. Short form:
-CWebhook URL for push notifications. The agent will send updates to this URL.
Authentication token for push notifications. Sent with webhook requests.
Bearer token for authentication. Overrides saved credentials. Short form:
-bAPI key for authentication. Overrides saved credentials. Short form:
-kExamples
Response Format
Successful responses include:- Context ID: Unique identifier for the conversation context
- Task ID: Unique identifier for the task
- State: Current state of the task (e.g.,
completed,working,auth-required) - Text: The agent’s response message
Use
--continue to automatically resume your last conversation with an agent without manually specifying context and task IDs.stream
Send a message and stream the response in real-time. This is a convenience alias formessage send --stream.
Arguments
URL of the A2A agent to send the message to
Message text to send to the agent
Options
Same asmessage send (except --stream is automatically enabled):
--context-id- Context ID for conversation continuity--task-id- Task ID to continue--continue/-C- Continue from saved session--push-url- Webhook URL for push notifications--push-token- Authentication token for push notifications--bearer/-b- Bearer token (overrides saved)--api-key/-k- API key (overrides saved)
Examples
Session Management
Handler automatically saves session state (context ID and task ID) after each message. Use the--continue flag to resume conversations: