Draft a message
drafts_createCompose an email in a connected mailbox and keep it there as a draft. An address the person did not give is found in their past mail - messages_list_all_mailboxes with from: or to: and the name, at the headers view - and is theirs to confirm before anything is written to it. The person's own last letter to someone - the newest found with to: and their address whose sender is an address mailboxes_list names - shows the manner they write to them in. Where the address it goes from has a signature - settings_send_as_get reads the default address's - the signature goes below your words and above any quote, so a sign-off, name, title, phone number or link in the words repeats it, and sign false leaves it off a terse note; where it has none, the words close as the person's own would.
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": {
"mailbox": "<mailbox>",
"subject": "<subject>"
},
"name": "drafts_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Who to copy. | |
| to | No | Who the message is addressed to. A draft may name nobody yet; it is sent only once it names someone. | |
| bcc | No | Who to blind-copy. The other recipients are not told. | |
| body | No | The message text; html alone is enough, its text read from it. | |
| flag | No | On an Outlook mailbox, a follow-up flag on these days for the person's own reminder, which the draft carries. No other mailbox keeps one. | |
| from | No | The address it goes from, the mailbox's default where left out. A Gmail connected by Google sign-in goes from any address Gmail lists as verified for it, under that address's own signature; an Outlook mailbox, and any other, from its own address alone, refusing another. The answer names the address it goes from. | |
| html | No | The message as HTML, for formatting; body stays its plain-text version, read from it where left out. An Outlook mailbox keeps only the HTML and writes the plain version from it. | |
| sign | No | false leaves the signature out; it goes in by default. | |
| mailbox | Yes | The mailbox's name or its email address. | |
| subject | Yes | The subject line. | |
| chatFiles | No | Files the person attached in this chat, as the chat itself hands them over - never an address you write: a file anywhere else is refused, and goes in attachments instead. | |
| importance | No | How important the message is marked, normal where left out: an Outlook mailbox marks its own, and any other writes the standard headers the recipient's mail app reads. | |
| attachments | No | Files to carry: one held by any connected mailbox, content you write out, or a file put at an upload address. A file you hold and can send yourself by HTTP PUT, as from a terminal, is named by filename and mimeType alone: the call then writes nothing and answers with an address to put it at, and the same call made again names it by the upload that answer gave it. Any other file is written out, kept small. | |
| crossCompanies | No | true only once the person said yes, in this conversation, to this one letter going from a mailbox of one of their companies to another company's people or carrying files from another company's mail - the refusal names both. Never set it unasked, and ask again for every letter that crosses. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| from | No | The address the draft goes from once sent. | |
| link | No | ||
| uploads | No | ||
| threadId | No | ||
| signature | No | Which signature went under your words, or why none did: gmail, Gmail's own for the address it went from; lumman, the one Lumman keeps for an Outlook mailbox or one whose provider is imap; none_set, that address has none - settings_send_as_patch sets one, a Gmail one only where that address is the one the mailbox signs in with; left_out, the call asked for none; already_in_words, your words already carried it; company_adds, the person has said the mailbox's company adds its own on its server. | |
| unfilledFields | No | The template fields your words hold unfilled, such as {first_name} or [Name], each as written. A send of the draft refuses one held in its words above any message it quotes until drafts_update puts the words each stands for in its place. | |
| previousVersionId | No |