gws.mail.create_draft
Create Gmail email drafts with HTML or plain text, set recipients, subject, and reply to existing threads.
Instructions
Create an email draft. Supports plain text and HTML bodies.
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": {
"body": "<body>"
},
"name": "gws.mail.create_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | CC recipients, comma-separated | |
| to | No | Recipient email(s), comma-separated | |
| bcc | No | BCC recipients, comma-separated | |
| body | Yes | Email body (plain text or HTML) | |
| account | No | Account label or email. Uses default if omitted. | |
| subject | No | Email subject | |
| threadId | No | Thread ID for reply drafts | |
| contentType | No | Body content type: 'text/plain' or 'text/html' (auto-detected if omitted) |