gmail_create_draft_with_attachment
Create a draft email with file attachments from base64 data or local paths. Review and send later, with up to 25MB total attachment size.
Instructions
Create a draft email with file attachments. Each attachment can provide base64-encoded data directly OR a local file path (the server reads the file from disk). The draft can be reviewed and sent later. Requires compose or full scope. Max 25MB total attachment size.
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": {
"accountId": "<accountId>",
"to": "<to>",
"subject": "<subject>",
"body": "<body>",
"attachments": "<attachments>"
},
"name": "gmail_create_draft_with_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | CC email address(es) | |
| to | Yes | Recipient email address(es), comma-separated for multiple | |
| bcc | No | BCC email address(es) | |
| body | Yes | Email body (plain text, or HTML when bodyFormat="html") | |
| subject | Yes | Email subject | |
| threadId | No | Thread ID to reply in | |
| accountId | Yes | The Google account ID, alias, or email | |
| inReplyTo | No | Message-ID being replied to | |
| bodyFormat | No | Body content type. "text" (default) sends as text/plain with RFC 3676 format=flowed so clients reflow paragraphs instead of rendering hard wraps. "html" sends as text/html for HTML-formatted bodies. | |
| references | No | References header for threading | |
| attachments | Yes | Array of attachments. Each must have either "data" (base64) or "filePath" (local path), not both. |