draft_discard
Discard one of the user's drafts, as the page's Discard does, only when the user asked; discarded=false brings a discarded draft back as it was. Nothing is sent and nothing is deleted: a discarded draft is kept 30 days. A scheduled message is stopped first (draft_schedule with cancel). Shows in their Activity under your name, with Undo. 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.
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_discard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | Yes | ||
| model | No | ||
| author | Yes | ||
| reason | No | ||
| sources | No | ||
| discarded | No |