Edit a WhatsApp message you sent
edit_messageReplace the text of a message sent from the linked WhatsApp account within 15 minutes; after that window, send a correction instead.
Instructions
Replace the text of a message the linked account sent. WhatsApp allows it for 15 minutes after sending; later, send a correction instead.
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": {
"message_id": "<message_id>",
"text": "<text>"
},
"name": "edit_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| account_id | No | ||
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| chat_id | Yes | ||
| timestamp | Yes | ||
| account_id | Yes | ||
| message_id | Yes |