Write a draft
create_draftWrite an email draft to the drafts folder without sending it, so replies or forwards can be reviewed and sent later.
Instructions
Write a draft into the drafts folder. Nothing is sent. With original_id it answers or forwards that message: the service adds recipients of a reply, the subject prefix and the quote. Recipients may stay empty. Use it instead of send_message when a person should look at the mail before it goes: send_draft sends it later. Answers the draft's id.
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": {
"account_id": "<account_id>"
},
"name": "create_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Addresses, plain or as Name <address> | |
| to | No | Addresses, plain or as Name <address> | |
| bcc | No | Addresses, plain or as Name <address> | |
| html | No | The body as HTML, for formatting. Inline styles only (style=...), since many mail programs drop <style> blocks. Without text, the text part is made from it | |
| text | No | The body as plain text | |
| quote | No | With original_id: false adds nothing of the original, no quote of a reply and no forwarded message. The link to it stays | |
| action | No | With original_id: reply to its sender, reply_all to everyone it went to, or forward it | reply |
| subject | No | The subject. Left empty with original_id: the original's, after Re: or Fwd: | |
| reply_to | No | Where answers should go instead of this account's address | |
| account_id | Yes | The account, by the id list_accounts names | |
| forward_as | No | A forward: inline quotes the original below the text with its attachments, attachment attaches it unchanged as a file | inline |
| attach_from | No | Attachments of other mail of this account, attached as they are, before attachments. Needs the right to read that mail | |
| attachments | No | Files to attach, 25 MiB together at most | |
| original_id | No | A message to answer or forward. Recipients and quote follow |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| to | Yes | ||
| date | Yes | ||
| subject | Yes |