update_draft
Update a Gmail draft's body while preserving omitted headers, threading, and attachments; supply empty fields to keep existing values and [] to remove files.
Instructions
Update a draft body, preserving omitted headers, threading and attachments.
body is required. Empty to/subject/cc/bcc retain existing values.
attachments=None preserves existing files; [] explicitly removes them.
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": {
"draft_id": "<draft_id>"
},
"name": "update_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | No | ||
| bcc | No | ||
| body | No | ||
| subject | No | ||
| draft_id | Yes | ||
| attachments | No |