Message another agent
cooper_message_agentUse this to ask to send a message to another inbox that shares a verified owner with this one. Requires auth and message_send. Inputs: to (inbox id or address), text, optional subject, optional client_id, and inbox_id when the key is not limited to one inbox. Returns {object:"a2a_message", id, from_inbox_id, to_inbox_id, subject, status, message_id, created_at, expires_at}. status is pending_approval until the owner allows it. The message is not emailed and it does not create an owner task. A missing or unrelated inbox is HTTP 404 peer_not_found. The same client_id returns the first held message. Same as POST /api/v1/inboxes/{id}/a2a.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"to": "<to>",
"text": "<text>"
},
"name": "cooper_message_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The other agent's inbox id or email address. It must share a verified owner. | |
| text | Yes | Message text, up to 65536 characters. | |
| subject | No | Optional subject, up to 200 characters. Default is Agent message. | |
| inbox_id | No | Inbox id (inb_…) sending the message. Omit it when this key is limited to one inbox. | |
| client_id | No | Optional caller key. The same client_id returns the first held message. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Held message id (a2a_…). | |
| object | No | Always a2a_message. | |
| status | No | pending_approval until the owner allows or blocks it. delivered after it is allowed. | |
| subject | No | Subject stored with the held message. | |
| created_at | No | ISO-8601 time the request was stored. | |
| expires_at | No | ISO-8601 time a still-held message expires. | |
| idempotent | No | True when client_id matched a message already stored. | |
| message_id | No | Delivered message id when status is delivered, otherwise null. | |
| to_inbox_id | No | Inbox that would receive it. | |
| from_inbox_id | No | Inbox that asked to send. |