create_draft
Create a Gmail DRAFT (saved, not sent) — new mail, or a reply when thread_id is set (from a search result / get_thread). A thread reply is drafted in the account that received the thread, as Reply All (original sender + original To/Cc) with proper threading headers, unless reply_mode='sender_only'; the result reports the account, to and cc. Unlike send_message this never delivers anything, so no pre-send confirmation is needed; the user reviews and sends it from Gmail. Needs gmail.compose — accounts connected before this feature get a reconnect hint. Pass account when more than one Gmail account is connected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Cc recipient(s). On a thread reply these are ADDED to the original Cc. | |
| to | No | Recipient address. Required for a new mail; for a thread reply omit it to Reply All (original sender + original To/Cc). | |
| body | Yes | Plain-text draft body. | |
| account | No | Account label to create the draft in. Required when several Gmail accounts are connected. | |
| subject | No | Draft subject. Omit on a thread reply to use "Re: <original subject>". | |
| thread_id | No | Draft a reply into this thread (Gmail thread id, e.g. from search results or get_thread). | |
| reply_mode | No | Thread replies only. 'all' (default) = Reply All. 'sender_only' = add nobody automatically (To = your `to` or the original sender, Cc = your `cc`) — use only when the user explicitly asks to reply to the sender only. | |
| allow_different_sender | No | Thread replies only. The draft is created in the account that received the thread; set true only when the user explicitly wants a different account. |