draft_new
Write a draft. It's local and unsent: the user reviews and sends it. body is only the new text: no signature, no quoted original. instruction is what the user asked for. html: optional formatted text in place of body's plain text (body is then made from it): one per line, an empty
A new message: account (one of the user's addresses, alias or address), to, subject and body; cc and bcc if wanted.
reply_to: a message id, to reply to it. Recipients and subject are worked out (reply_all: everyone on it). It goes from account if given, else from the conversation's reply_as (mail_read with thread): the address the user last wrote from in it, else the one the message was sent to. Write as that address.
forward: a message id, to forward it from the address that received it, with its files attached. body is an optional note above it; to may be left empty for the user to fill in. Optional reason: why you're making this change, in one sentence the person reads (at most 1000 characters). Optional sources: reference addresses in Home, such as /mail/#/c/12; never message or document text.
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": {
"author": "<author>"
},
"name": "draft_new"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | No | ||
| bcc | No | ||
| body | No | ||
| html | No | ||
| model | No | ||
| author | Yes | ||
| reason | No | ||
| account | No | ||
| forward | No | ||
| sources | No | ||
| subject | No | ||
| reply_to | No | ||
| reply_all | No | ||
| instruction | No |