manage_draft
Save or clear a cloud message draft in a destination chat to prepare outgoing messages or remove existing drafts. Supports text, formatting, and reply target for saved drafts.
Instructions
Save or clear a cloud message draft in a destination chat.
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": {
"action": "<action>"
},
"name": "manage_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | No | Target chat reference (required for `save` and for `clear` in strict whitelist mode). | |
| text | No | Draft text (required for `save`). | |
| action | Yes | Draft operation (`save` or `clear`). | |
| parse_mode | No | Input formatting mode for `save` (`markdown`, `plain`, or `html`). | |
| reply_to_message_id | No | Optional reply target message ID for `save`. |