sage_message_send
Send an exact local or federated agent message once using a caller-supplied idempotency key, preventing duplicate sends on retry. Also returns a fresh inbox snapshot to avoid missing concurrent inbound messages.
Instructions
Idempotently send one exact local or federated agent message. The caller-supplied idempotency_key makes a retry return the original message_id instead of creating a duplicate. Use sage_find_agent first when only a human name is known. A successful send also returns a fresh non-claiming snapshot of this caller's own inbox, closing the race where an inbound message arrives just after an earlier empty poll; follow message_inbox_action before reporting that no message arrived.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Exact local agent_id/name or caller-authorized federated #node/agent or agent_id@chain address | |
| intent | No | Short purpose of the message | |
| payload | Yes | Untrusted request content to send | |
| ttl_minutes | No | Optional expiry in minutes; omit or use 0 for durable email-like delivery | |
| idempotency_key | Yes | Caller-generated stable token reused only when retrying this exact send |