create_draft
Generate and save a draft email in Gmail using base64url encoded RFC 2822 format. Specify recipients, subject, body, and thread ID for organized email creation.
Instructions
Create a draft email in Gmail. Note the mechanics of the raw parameter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bcc | No | List of BCC recipient email addresses | |
| body | No | The body of the email | |
| cc | No | List of CC recipient email addresses | |
| includeBodyHtml | No | Whether to include the parsed HTML in the return for each body, excluded by default because they can be excessively large | |
| raw | No | The entire email message in base64url encoded RFC 2822 format, ignores params.to, cc, bcc, subject, body, includeBodyHtml if provided | |
| subject | No | The subject of the email | |
| threadId | No | The thread ID to associate this draft with | |
| to | No | List of recipient email addresses |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"bcc": {
"description": "List of BCC recipient email addresses",
"items": {
"type": "string"
},
"type": "array"
},
"body": {
"description": "The body of the email",
"type": "string"
},
"cc": {
"description": "List of CC recipient email addresses",
"items": {
"type": "string"
},
"type": "array"
},
"includeBodyHtml": {
"description": "Whether to include the parsed HTML in the return for each body, excluded by default because they can be excessively large",
"type": "boolean"
},
"raw": {
"description": "The entire email message in base64url encoded RFC 2822 format, ignores params.to, cc, bcc, subject, body, includeBodyHtml if provided",
"type": "string"
},
"subject": {
"description": "The subject of the email",
"type": "string"
},
"threadId": {
"description": "The thread ID to associate this draft with",
"type": "string"
},
"to": {
"description": "List of recipient email addresses",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
}