mail_draft
Create an email draft for review in the user's mail program without sending it. Supports replies, forwards, revisions, and opening the draft to send now.
Instructions
Create a draft. Nothing is sent; the user reviews it in their mail program.
body: plain text the user would write, without signature (Outlook adds it).
reply_to: message id to answer. Recipients, subject and quoted history are filled in;
to/ccgiven here are added. reply_all=true answers everyone.forward_of: message id to forward incl. attachments;
tois required.replace_draft_id: id of an earlier draft from mail_draft that this one replaces (the old one is deleted). Use it for revisions.
open_window: classic Outlook only. Opens the draft as a window so the user can check and press Send right away. Use when the user wants to send now.
account: sender mailbox. Replies and forwards use the mailbox of the original mail.
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_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | No | ||
| bcc | No | ||
| body | Yes | ||
| account | No | ||
| subject | No | ||
| reply_to | No | ||
| reply_all | No | ||
| forward_of | No | ||
| open_window | No | ||
| replace_draft_id | No |