Edit saved draft
update_draftEdit an unsent draft. Supplied fields replace their saved values, recipient and attachment lists as a whole; omitted fields stay unchanged.
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 | ||
| html | No | HTML alternative; null clears it. Editing text leaves saved HTML unchanged, so update or clear it too. | |
| text | No | Plain-text body; may be empty while drafting. For a forward prepared from source, this is the note placed before the original. | |
| labels | No | Labels the sent copy gets when the draft is sent. | |
| subject | No | ||
| draft_id | Yes | ||
| attachments | No | Files with padded base64 content. An empty array removes all files. | |
| in_reply_to | No | Cherami ID of the received or accepted sent message in this inbox being replied to; null clears it. Set recipients and subject yourself, or use source on creation to derive them. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| state | Yes | ||
| subject | Yes | ||
| inbox_id | Yes | ||
| created_at | Yes | Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision. | |
| updated_at | Yes | Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision. | |
| sent_message_id | Yes |