task command group provides functionality to manage A2A tasks, including retrieving task status, canceling tasks, resubscribing to task streams, and managing push notification configurations.
get
Retrieve the current status and details of a task.Arguments
URL of the A2A agent that owns the task
Unique identifier of the task to retrieve
Options
Number of history messages to include in the response. Short form:
-nBearer token for authentication. Overrides saved credentials. Short form:
-bAPI key for authentication. Overrides saved credentials. Short form:
-kExamples
Response Format
Successful responses include:- Task ID: The unique identifier of the task
- State: Current state (e.g.,
working,completed,cancelled,failed) - Context ID: Associated conversation context (if available)
- Text: Latest response or status message from the agent
cancel
Request cancellation of a running task.Arguments
URL of the A2A agent that owns the task
Unique identifier of the task to cancel
Options
Bearer token for authentication. Overrides saved credentials. Short form:
-bAPI key for authentication. Overrides saved credentials. Short form:
-kExamples
Cancellation is a request to the agent. The agent may complete some work before fully canceling, or may not support cancellation for certain task types.
resubscribe
Resubscribe to a task’s Server-Sent Events (SSE) stream after disconnection. Useful for reconnecting to long-running tasks.Arguments
URL of the A2A agent that owns the task
Unique identifier of the task to resubscribe to
Options
Bearer token for authentication. Overrides saved credentials. Short form:
-bAPI key for authentication. Overrides saved credentials. Short form:
-kExamples
notification set
Configure a push notification webhook for a task. The agent will send updates to the specified URL as the task progresses.Arguments
URL of the A2A agent that owns the task
Unique identifier of the task to configure notifications for
Options
Webhook URL to receive notifications. Short form:
-uAuthentication token for the webhook. The agent will include this in notification requests. Short form:
-tBearer token for agent authentication. Overrides saved credentials. Short form:
-bAPI key for agent authentication. Overrides saved credentials. Short form:
-kExamples
Response Format
Successful configuration includes:- Task ID: The task identifier
- URL: The webhook URL
- Token: Masked token (first 20 characters shown)
- Config ID: Unique identifier for this notification configuration
You can start a local webhook server using
handler server push to receive notifications during development.notification get
Retrieve the push notification configuration for a task.Arguments
URL of the A2A agent that owns the task
Unique identifier of the task
Options
Specific push notification config ID to retrieve. Short form:
-cBearer token for authentication. Overrides saved credentials. Short form:
-bAPI key for authentication. Overrides saved credentials. Short form:
-kExamples
Response Format
Returns the notification configuration including:- Task ID: The task identifier
- URL: The webhook URL
- Token: Masked token value
- Config ID: Unique configuration identifier