Create a draft
mail_create_draftSaves a draft without sending it: a new message (pass account_id when you can reach several accounts), a reply (reply_to_message_id) or a forward (forward_message_id), never both. Use it when the user wants to review before sending. The result's draft.id is the draft_id for mail_send_draft and mail_update_draft. Example: { "reply_to_message_id": "msg_…", "body": { "content": "Draft reply." } }.
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": {
"body": "<body>"
},
"name": "mail_create_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Copied recipients. | |
| to | No | Recipients (required for a new draft or a forward). | |
| bcc | No | Blind-copied recipients. | |
| body | Yes | The message body. Markdown is converted to HTML for the recipient. | |
| subject | No | For a new message; replies and forwards keep theirs. | |
| reply_all | No | For a reply: include every recipient. | |
| account_id | No | For a new draft: the account to send from. | |
| attachments | No | Files for the draft (new, reply or forward), within the account's limit. On a forward the original's attachments are carried too and count toward it. | |
| idempotency_key | No | Any unique string. Retrying with the same key within 24 h never repeats the action. | |
| forward_message_id | No | Draft a forward of this message. | |
| reply_to_message_id | No | Draft a reply to this message. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | Yes |