Send Message
send_messageSend Markdown messages to one or more agents and persist canonical and mailbox copies to Git for auditable collaboration.
Instructions
Send a Markdown message to one or more recipients and persist canonical and mailbox copies to Git.
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": {
"project_key": "<project_key>",
"sender_name": "<sender_name>",
"to": "<to>",
"subject": "<subject>",
"body_md": "<body_md>"
},
"name": "send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Additional recipients by name. | |
| to | Yes | Primary recipients (agent names). At least one of to/cc/bcc must be non-empty. | |
| bcc | No | Additional recipients by name. | |
| topic | No | Optional topic tag (max 64 chars). Must start with a letter or digit and may otherwise contain alphanumerics, '.', '_', or '-' — so beads_rust hierarchical IDs like ``br-abc.1`` can be used verbatim. Stored on the message for topic-based filtering via fetch_inbox(topic=...) or fetch_topic(). | |
| format | No | ||
| body_md | Yes | GitHub-Flavored Markdown body. Image references can be file paths or data URIs. | |
| subject | Yes | Short subject line that will be visible in inbox/outbox and search results. | |
| broadcast | No | If true and `to` is empty, expand recipients to all registered agents in the project (excluding the sender). Mutually exclusive with explicit `to` recipients. Respects contact_policy settings and is best-effort across contact boundaries: expanded recipients that are retired, set ``block_all``, or would need contact approval are skipped rather than blocking the send, and are reported in ``broadcast_skipped`` (``[{"agent": name, "reason": ...}]``). No contact request is created for them — request contact explicitly if you want them included. ``auto_contact_if_blocked`` therefore never fires for broadcast-expanded recipients; it still applies to explicitly named ``to``/``cc``/``bcc`` names. | |
| thread_id | No | If provided, message will be associated with an existing thread. | |
| importance | No | One of {"low","normal","high","urgent"} (free form tolerated; used by filters). | normal |
| project_key | Yes | Project identifier (same used with `ensure_project`/`register_agent`). | |
| sender_name | Yes | Must match an agent registered in the project. | |
| ack_required | No | If true, recipients should call `acknowledge_message` after reading. | |
| sender_token | No | ||
| convert_images | No | Overrides server default for image conversion/inlining. If None, server settings apply. Note: sender attachments_policy "inline"/"file" always forces conversion/inlining. | |
| attachment_paths | No | Extra file paths to include as attachments; will be converted to WebP and stored. | |
| auto_contact_if_blocked | No | When ``True`` (and contact policy blocks delivery to one or more recipients), the server will attempt to resolve the block automatically: - If the recipient is already authenticated in the **same MCP session**, run ``macro_contact_handshake(..., auto_accept=True)`` to approve the link in-band. The current send proceeds normally and the message is delivered. - Otherwise, fall back to creating a **pending** ``request_contact`` aimed at the recipient. This call then **fails loud** with ``CONTACT_REQUIRED`` carrying ``auto_contact_requested`` in ``data``. **The message body is not queued** — once the recipient approves the contact (``respond_contact(..., accept=True)``), the sender must re-call ``send_message`` to actually deliver the payload. Defaults to the server-wide ``MESSAGING_AUTO_HANDSHAKE_ON_BLOCK`` setting (true unless overridden). The pending-request TTL is governed by ``CONTACT_PENDING_TTL_SECONDS`` (default 7 days, separate from the in-session auto-approval TTL ``CONTACT_AUTO_TTL_SECONDS``). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||