messages_edit
Edit the text of a message you already sent, in place. Supported on Telegram, WhatsApp, LiveChat, Max.ru, LINE, WeChat and similar channels; NOT supported on Gmail, Instagram, or LinkedIn (their platforms forbid editing) — those return an explicit error. Note: channels impose their own limits (own messages only, edit time windows such as ~48h on Telegram / ~15min on WhatsApp).
Get the message_id from messages.read_history (each row's id).
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": {
"thread_id": "<thread_id>",
"message_id": "<message_id>",
"new_text": "<new_text>"
},
"name": "messages_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_text | Yes | Replacement text for the message. | |
| thread_id | Yes | Thread ID containing the message (numeric DB id or channel_ref like 'telegram:-100123'). | |
| message_id | Yes | ID of the message to edit (from messages.read_history). | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. |