Update a draft
update_draftReplace draft contents while preserving threading headers. Omit fields to keep existing values; old version is archived automatically.
Instructions
Replace a draft's contents. Threading headers are carried over, the new version is saved before the old one is binned. Omit a field to keep what the draft already had.
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": {
"uid": "<uid>"
},
"name": "update_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | No | ||
| uid | Yes | ||
| body | No | ||
| attach | No | Files to attach, by path. Only from the allowed source directories. | |
| folder | No | Defaults to your Drafts folder. | |
| dry_run | No | Preview exactly what would happen and change nothing. Needs no confirmation. | |
| subject | No | ||
| uidvalidity | No | UIDVALIDITY of the folder; refuses on mismatch. | |
| from_address | No | Must be on the sender allowlist. |