Send WhatsApp Message
send-whatsappSend one WhatsApp message from an approved template to a recipient, then confirm content and recipient first because sent messages cannot be recalled.
Instructions
Send one WhatsApp message from an approved template; WhatsApp allows no free text to start a conversation. Find templates and the parameters each needs with list-whatsapp-templates and get-whatsapp-template. Each message is charged to the organization's WhatsApp balance. This reaches real people, and a message that has gone out cannot be recalled. Before calling it, show the user what will go out and to whom, and wait for their go-ahead. See what was sent with list-whatsapp-messages.
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": {
"to": "<to>",
"template_name": "<template_name>"
},
"name": "send-whatsapp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient in E.164 format, e.g. +966501234567. | |
| language | No | Template language code; omit when only one approved template has this name. | |
| parameters | No | Values for the template placeholders, keyed by placeholder name. For an authentication template, the one-time code goes in `code`. | |
| template_name | Yes | Name of an `approved` template. |