Edit a sent text message
edit_messageModify the text of an outbound WhatsApp message within the edit window. If the message is still queued, it sends the updated text.
Instructions
Change the text of an outbound text message, within WhatsApp's edit window (about 15 minutes). A message still queued is sent with the new text.
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": {
"messageId": "<messageId>",
"text": "<text>"
},
"name": "edit_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The new text. | |
| messageId | Yes | A wuapi message id (from list_messages, a send tool, or a webhook). |