Edit a sent message
edit_messageReplace the text of a message you sent to fix typos or incorrect details without deleting and resending it; only your own recent messages can be changed.
Instructions
Replace the text of a message the user sent, e.g. to fix a typo or a wrong date, instead of deleting and resending it. Only the user's own messages, and only for a while after sending (15 minutes on WhatsApp, for example). Recipients see the new text marked as edited. This changes a message on the user's behalf: confirm the new text with the user first.
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": {
"chatID": "<chatID>",
"messageID": "<messageID>",
"text": "<text>"
},
"name": "edit_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The new text (Markdown is converted where the network supports formatting) | |
| chatID | Yes | Chat ID (or local chat ID) | |
| messageID | Yes | ID of the message to edit |