Gmail
Gmail_WriteDraftEmail
Compose a new email draft using the Gmail API, optionally with file attachments. To attach files, pass ``attachments`` and give each file's local path as a ``file://`` URI in ``source`` (formatted ``file:///absolute/path/to/file``). The file's bytes are read and substituted on the client before the request is sent, so the contents never pass through this conversation. Do not read, encode, or inline the bytes yourself.
Remote gmail
Remote (network-hosted)
Other tools also called Gmail_WriteDraftEmail?
See providers with this name
Input Schema
{
"type": "object",
"properties": {
"cc": {
"type": "array",
"items": {
"type": "string"
},
"description": "CC recipients of the draft email"
},
"bcc": {
"type": "array",
"items": {
"type": "string"
},
"description": "BCC recipients of the draft email"
},
"body": {
"type": "string",
"description": "The body of the email, as plain text or HTML."
},
"subject": {
"type": "string",
"description": "The subject of the draft email"
},
"recipient": {
"type": "string",
"description": "The recipient of the draft email"
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"required": [
"source"
],
"properties": {
"source": {
"type": "string"
},
"filename": {
"type": "string"
},
"mime_type": {
"type": "string",
"description": "RFC 6838 media type in ``type/subtype`` form (e.g. ``application/pdf``).\n\n Omitting it derives the type from the ``data:`` URI's media type."
}
},
"additionalProperties": false
},
"description": "Files to attach. Give each file's local path as a URI in 'source' (formatted file:///absolute/path/to/file); the file's bytes are read and substituted on the client before the request is sent, so do not put base64 or file contents in 'source' yourself. 'filename' and 'mime_type' are optional and are taken from the file when omitted. Defaults to no attachments."
},
"content_type": {
"enum": [
"plain",
"html",
"auto"
],
"type": "string",
"description": "How the body is encoded on the wire. `auto` (default) sends as HTML and auto-converts plain-text input to paragraphs. `html` sends the body verbatim as HTML (use this when it contains entities or non-allow-listed tags); `plain` is plain text."
}
}
}