create_draft
Create Gmail drafts for new messages or threaded replies, with recipients, HTML or plain text, and local file attachments; returns IDs and a Gmail link.
Instructions
Create a draft. With replyToMessageId it becomes a reply in that thread (subject, In-Reply-To and References set; the original is quoted below the new text unless quote is false); recipients are still yours to give, or use reply with asDraft for Gmail's default recipients. Attachments are local file paths. Returns the draft ID, message ID, thread ID and a Gmail link.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | No | ||
| bcc | No | ||
| body | No | Plain-text body. One line per paragraph, no hard wrapping; Gmail wraps on display and links bare URLs. Markdown does NOT render: for bullets or other formatting supply htmlBody instead. | |
| quote | No | Quote the replied-to message below the new text. Default true. | |
| subject | No | Title Case. Defaults to "Re: <original>" when replying. | |
| htmlBody | No | HTML body, used when the message needs formatting such as <ul><li> lists. When given, "body" becomes the plain-text alternative (derived from the HTML if omitted). Do not include the signature; it is appended. | |
| signature | No | Set false to send without the configured signature. By default the signature (from config.json, GMAIL_SIGNATURE, or the Gmail settings signature) is appended once; a copy typed into the body is de-duplicated. | |
| attachments | No | Files to attach, as local paths (preferred: any size up to Gmail's 25 MB total) or base64 objects. | |
| replyToMessageId | No | Message ID to reply to; threads the draft and quotes the original. |