create_draft
Prepare a Gmail draft without sending it—including replies, recipients, and attachments—so messages can be reviewed before explicit confirmation to send.
Instructions
Prepare a Gmail draft without sending it (sending: send_draft, only after the user's yes).
As a reply (replyToMessageId, or threadId to answer the last message of the thread): In-Reply-To, References, "Re:" subject and Gmail thread are filled in; to then defaults to the sender (or Reply-To). Attachments: absolute paths of local files, 25 MB in total; never from a secrets location (vaults, SSH keys, tokens): refused.
Args: body: plain text body (no Markdown). to: recipients (list of addresses, or "Name a@example.com, b@example.com"); required unless replying. subject: subject; when replying and empty, the original subject with "Re:". cc: carbon copy, optional. bcc: blind carbon copy, optional. replyToMessageId: ID of the Gmail message to reply to. threadId: thread to reply to (its last message) when replyToMessageId is empty. attachments: absolute paths of the files to attach, optional.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | No | ||
| bcc | No | ||
| body | Yes | ||
| subject | No | ||
| threadId | No | ||
| attachments | No | ||
| replyToMessageId | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |