Delete draft
delete_draftDelete one draft, permanently. Identify it with draft_id from list_drafts, or with match_subject / match_to / match_account, which must resolve to exactly one draft. Only drafts in the accounts this server is scoped to can be deleted, and nothing else in the mailbox can be deleted at all. There is no undo: a deleted draft is gone, so read it with list_drafts before removing it. This is what update_draft means when it says to delete a reply and make a new one, and it is how to clear up the extra draft a failed reply leaves behind -- every reply costs a draft even when it reports an error. Requires Keeploop Pro.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "delete_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft_id | No | ||
| match_to | No | ||
| match_account | No | ||
| match_subject | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| deleted | Yes | ||
| draft_id | Yes |