draft_edit
Optional reason: why you're making this change, in one sentence the person reads (at most 1000 characters). Optional sources: reference addresses in Home, such as /mail/#/c/12; never message or document text. Change anything about a draft or a message already scheduled: its text, recipients, subject, the address it is from (account), or its time (at). Leave out what stays the same. A scheduled message keeps its time unless at is given; giving at to an unscheduled draft schedules it, so treat that like draft_schedule. If a change to a scheduled message can't go ahead the result says so, and it is then an unsent draft. A new body drops the formatting unless html gives it again. html: optional formatted text in place of body's plain text (body is then made from it): one per line, an empty
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": "<draft>",
"author": "<author>"
},
"name": "draft_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ||
| cc | No | ||
| to | No | ||
| bcc | No | ||
| body | No | ||
| html | No | ||
| draft | Yes | ||
| model | No | ||
| author | Yes | ||
| reason | No | ||
| account | No | ||
| sources | No | ||
| subject | No | ||
| instruction | No |