Send a message to the agent via A2A protocol
| Header | Value | Required |
|---|---|---|
Content-Type | application/json | Yes |
| Field | Type | Required | Description |
|---|---|---|---|
jsonrpc | string | Yes | Must be "2.0" |
method | string | Yes | A2A method name |
params | object | Yes | Method parameters |
id | integer/string | Yes | Request ID |
| Method | Description |
|---|---|
tasks/send | Send a message to create or continue a task |
tasks/get | Get task status and history |
tasks/cancel | Cancel a running task |
| Field | Type | Description |
|---|---|---|
jsonrpc | string | Always "2.0" |
result | object | Task result |
result.id | string | Task ID |
result.status | object | Task status |
result.artifacts | array | Response artifacts |
id | integer/string | Request ID (echoed) |
| State | Description |
|---|---|
submitted | Task received |
working | Task in progress |
completed | Task finished successfully |
failed | Task failed |
canceled | Task was canceled |
| Code | Message | Description |
|---|---|---|
-32700 | Parse error | Invalid JSON |
-32600 | Invalid Request | Invalid JSON-RPC |
-32601 | Method not found | Unknown method |
-32602 | Invalid params | Invalid parameters |
-32603 | Internal error | Server error |