Edit Message
wa_edit_messageEdit a WhatsApp message you sent. WhatsApp only accepts an edit within about 20 minutes of the original send.
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": "<chat>",
"message_id": "<message_id>",
"text": "<text>"
},
"name": "wa_edit_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | the chat the message is in — a phone number or a group/channel JID | |
| text | Yes | the replacement message body | |
| account_id | No | the account, as returned by wa_list_accounts; omit it when the workspace has only one account | |
| message_id | Yes | WhatsApp's id for the message, as returned by wa_send_message |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ok (the operation succeeded) or refused (nothing was done) | |
| refusal | No | present only when status is refused | |
| new_message_id | No | WhatsApp's id for the react/edit/revoke protocol message itself |