Use the CLI for A2A workflows
Message responses and errors default to readable text for interactive use. Pass--output json for full protocol responses, or --output ndjson before
streaming commands when you need structured event output for automation or
agent-driven workflows. Commands without a custom text formatter may still emit
JSON in the default mode.
Inspect an agent card first
Fetch the card for a configured server:Send a message
Send a basic message to a configured server:Stream the response
Stream task events and response text from a configured server:event: summaries for task state
changes, tool calls, tool results, data/file parts, and response text before the
final answer content. That makes it clear when the agent is still working even
if the model’s text arrives in one larger chunk. Handler also prints the full
task ID once when the stream starts so you can resubscribe if the server
connection is interrupted.
If you already use message send in scripts, adding --stream switches that
same command to streaming mode. Otherwise, prefer the more explicit
message stream command in examples and documentation.
Use newline-delimited JSON when you want structured stream events:
none to disable a
specific timeout:
HANDLER_CONNECT_TIMEOUT,
HANDLER_READ_TIMEOUT, HANDLER_WRITE_TIMEOUT, HANDLER_POOL_TIMEOUT, and
HANDLER_STREAM_READ_TIMEOUT, including from a workspace .env file. Streaming
disables the read timeout by default so long-running tasks are not aborted during
idle gaps between SSE events.
Continue a saved conversation
Handler persists conversation identifiers locally so you can continue later:Send custom payloads or headers
For agent-friendly invocation and integration testing, Handler exposes raw JSON input, structured output, and repeatable header flags:--bearer-env or --api-key-env.
Work with tasks directly
Fetch the latest task status:resubscribe is useful when a task uses streaming events and you need to attach
again after a dropped server connection.
Configure push notifications for tasks
Point a task at a webhook receiver:Manage saved sessions
Handler stores session metadata locally so repeated CLI calls can reuse conversation state. List all saved sessions:session clear when you want a clean slate without deleting the server
definition itself.