send
Deliver a message to one participant or broadcast to the whole channel when no recipient is named, letting connected agent sessions coordinate in real time.
Instructions
Send a message to one participant, or to the whole channel if NAME is omitted.
Prefer one recipient: a broadcast interrupts every session on the channel. MENTIONS calls on people while everyone still hears it. Nothing is stored for a session that is not connected, so a message reaches only whoever is on the channel now.
Returns "accepted": handed to the network, not read. A reply arrives the way join_channel said mail does -- delivered to you, or collected with check_inbox.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The message text. | |
| name | No | Recipient's name. Omit only to announce to everyone. | |
| tags | No | Topic labels. Not priorities; nothing acts on them. | |
| payload | No | Any JSON to carry beside the text, when structure helps more than prose. | |
| subject | No | One line: what happened or what you need, so the recipient can judge it unread. | |
| mentions | No | Names this message calls on to react. Everyone in scope still receives it. | |
| peer_secret | No | The secret join_channel returned for this connection. Carry it verbatim through any compaction or summary; if it is lost, join_channel with the same channel and name returns this same membership. | |
| connection_id | No | Which connection to use. Omit unless this session holds more than one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||