Get A2A Task
a2a_get_taskRetrieve the current status, progress, and artifacts of an existing agent task by its task ID and agent card URL. Use it to determine if a submitted task completed, failed, or remains in progress.
Instructions
Retrieve the status and details of an A2A task by its ID.
This tool fetches information about a previously created task, including its current status, progress, and any generated artifacts.
Args:
agentCardUrl (string): URL to the agent's card endpoint
taskId (string): The unique identifier of the task to retrieve
Returns: JSON response containing task information:
id: Task identifier
status: Object with state ("submitted", "in_progress", "completed", "failed", "canceled") and optional progress information
artifacts: Array of generated outputs, each with:
artifactId: Unique identifier
name: Artifact name/title
kind: Type of artifact (e.g., "text", "image", "file")
parts: Artifact content
messages: Conversation history associated with the task
created: Task creation timestamp
updated: Last update timestamp
Examples:
Use when: "Check the status of task xyz-789" params: { agentCardUrl: "https://agent.example.com/.well-known/agent-card.json", taskId: "xyz-789" }
Use when: "Get the results from the task I started earlier" params: { agentCardUrl: "https://agent.example.com/.well-known/agent-card.json", taskId: "previously-returned-task-id" }
Don't use when: You want to send a new message (use a2a_send_message instead)
Error Handling:
Returns "Error: Task not found" if the task ID doesn't exist
Returns "Error: Failed to connect to agent" if the agent is unreachable
Task status will indicate "failed" if the task encountered errors during execution
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | The unique identifier of the task to retrieve | |
| agentCardUrl | Yes | URL to the agent's card endpoint |