gmail_edit_draft
Modify an existing Gmail draft's recipients, subject, body, or attachments and save it while preserving its thread; optionally append recipients or body instead of replacing.
Instructions
Change an existing draft (recipients, subject, body, attachments) and save it again.
The draft keeps its thread (reply drafts stay replies). Fields left out are unchanged. With append=false (default) given recipients REPLACE the field and body replaces the whole editable body; with append=true recipients are added and body is added at the end.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Cc recipients (same rules). | |
| to | No | To recipients (replace, or add with append=true; [] clears the field). | |
| bcc | No | Bcc recipients (same rules). | |
| body | No | New body text (any Unicode, newlines allowed). | |
| index | No | Row index from gmail.drafts (default 0 when query is given). | |
| query | No | The query used with gmail.drafts (searches 'in:drafts <query>'); default: the query of the last gmail.drafts listing (else the Drafts folder). | |
| append | No | Add recipients/body instead of replacing them. | |
| subject | No | New subject (always replaces). | |
| attachments | No | Paths of files on this computer to attach. | |
| expect_subject | No | Safety check: the draft's subject must contain this text. | |
| remove_attachments | No | File names of attachments to remove from the draft. |