send
Delivers end-to-end encrypted JSON messages to one or many contacts, validates payloads against known schemas before dispatch, supports thread replies, and returns a message ID per recipient.
Instructions
Sends an E2E-encrypted message to a contact (or to a list of contacts — fan-out). data — any JSON, schema — a format tag (for example finreport.v1), note — an optional comment, thread_id — to reply in an existing thread. Returns a msg_id for each recipient. For mandates use send_mandate, not send. If the tag is known to the client (see /schemas), data is checked against the schema BEFORE sending: a mismatch is returned as SCHEMA_MISMATCH and the message is not sent. A recipient whose safety number the owner has not compared yet is refused with E_UNVERIFIED_RECIPIENT — first show the owner the code (verify_contact). allow_unverified=true sends anyway and returns a warning: use it only on the owner's direct instruction. data larger than 64 KiB (or a note larger than 2 KiB) is sent, but the response carries a warning: a recipient on client 0.1.6+ saves the message in full and shows it to the model in brief, clients up to 0.1.5 discard such data; it has arrived in full when a notice.v1 with this msg_id comes back.
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>",
"data": "<data>"
},
"name": "send"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| data | Yes | ||
| note | No | ||
| schema | No | message.v1 | |
| thread_id | No | ||
| allow_unverified | No |