Neue E-Mail zur Freigabe vorbereiten
prepare_emailPrepare an explicitly requested new outbound email, not an inbound reply. First preview_email with the same requestKey UUID and exact to/from/subject/body/attachments; from is optional and must be an eligible address from list_email_senders. Returns the immutable operation identity/contentHash for actual owner-chat approval, never an approval itself. Reuses the existing tenant mail workflow and immutable reply operation store, without a fake inbound thread or CRM contact. Keep the same requestKey for retries; changed sender/recipient/content/attachment conflicts. Does not send. Present final from/to/subject/body and attachment filenames, byte sizes and SHA256. Record only the human owner's exact approval with approve_reply using the returned operationId/contentHash and real decision evidence, then execute_reply on that same operation. Existing get_operation/list_reply_operations/cancel_reply provide recovery. New email currently uses chat approval only; no browser or card approval with invisible attachments. Never replay processing, submitted or ambiguous outcomes, or change keys to bypass them. No automatic grants, sender changes, marketing campaigns or recipient substitution.
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": {
"requestKey": "<requestKey>",
"to": "<to>",
"subject": "<subject>",
"body": "<body>"
},
"name": "prepare_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | One explicitly supplied recipient mailbox, without display names, lists, Cc or Bcc. It is normalized to lowercase and checked for suppression. | |
| body | Yes | Final authored body, at most 12000 characters with nonblank content. Preserve the normalized preview text for preparation and human approval; this is not approval evidence. | |
| from | No | Optional exact confirmed sender or explicitly requested address on a confirmed tenant sending domain from list_email_senders; omission retains the current default, never invent an alias. | |
| subject | Yes | Final subject of the exact new email, at most 500 characters and no CR/LF/NUL. Surrounding whitespace is normalized; not a generation instruction. | |
| requestKey | Yes | One UUID for this explicitly requested new email. Reuse it and identical content in preview_email/prepare_email; another key never authorizes replay of an uncertain send. | |
| attachments | No | Up to 3 explicitly supplied attachments, unique filenames and at most 65536 decoded bytes combined. Omit for no attachments; preserve bytes and names through preview, preparation and exact owner approval. |