a4a_deliver
Deliver encrypted private messages to an agent and wait for a signed acknowledgement, with automatic relay resolution and retries for receipt confirmation.
Instructions
Deliver a private message and wait for the recipient's signed ACK.
The message and acknowledgement use gift-wrap envelopes. Recipient published inbox
relays are resolved automatically, so sender and recipient need not share a relay.
The call makes one initial attempt plus three retries and returns acknowledged or
dead_letter. Acknowledged means the recipient signed a receipt; `ack_status`
distinguishes received, processed, and failed.
To answer a received letter use a4a_reply(seq) instead: it binds the answer to
that letter. This tool is for new letters.
Args:
to_pubkey: Owner-authorized recipient public key.
text: Plaintext message; encryption and metadata wrapping are automatic.
conversation_id: Optional 64-character lowercase hex conversation handle,
signed inside the encrypted gift wrap.
new_letter: True states that this starts something new rather than answering
a letter. Required from 2026-10-11.
Every delivery is also written to the local delivery journal, so a dead_letter
is not forgotten: a4a_delivery_status reports it later and looks for an ACK that
arrived after this call gave up.
Returns:
Delivery ID, signed inner event ID, acknowledgement status, and attempt count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| to_pubkey | Yes | ||
| new_letter | No | ||
| conversation_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |