edit_message
Edit a previously sent WhatsApp text message in place within WhatsApp’s ~15-minute window; recipients see the new body with an edited label. Only your own messages can be changed.
Instructions
Edit a previously-sent text message in place; recipients see the new body with an edited label and the cached row takes the new body. Only your own messages can be edited and only within WhatsApp's edit window (~15 minutes). Re-edit by calling again with another new_body; to remove the message entirely use delete_message (revoke). Returns the plain-text string Message edited on success.
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": {
"chat_jid": "<chat_jid>",
"message_id": "<message_id>",
"new_body": "<new_body>"
},
"name": "edit_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_jid | Yes | WhatsApp JID: individual as `<digits>@s.whatsapp.net` or bare phone digits, group as `<digits>-<timestamp>@g.us` | |
| new_body | Yes | replacement message body text | |
| message_id | Yes | WhatsApp message ID of your own message to edit (use `message_id` from list_messages) |