gmail_update_draft
Replace the full contents of an existing Gmail draft to update recipients, subject, body, or attachments. Re-specify any attachments to keep them; omitted attachments are removed.
Instructions
Replace the contents of a Gmail draft. Gmail has no partial draft update: this replaces the whole message, so ANY ATTACHMENT NOT RE-SPECIFIED IS DROPPED. To keep an existing attachment, pass {messageId: , attachmentId: ...}.
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": {
"account": "<account>",
"draftId": "<draftId>",
"to": "<to>",
"subject": "<subject>",
"body": "<body>"
},
"name": "gmail_update_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | Yes | Recipient address, or a comma-separated list. | |
| bcc | No | ||
| body | Yes | Plain-text body. Octomail does not compose HTML mail. | |
| account | Yes | Configured Gmail account alias, e.g. work, personal, support. | |
| draftId | Yes | ||
| subject | Yes | ||
| attachments | No |