Send a text message
send_messageSend WhatsApp text messages to a person or group by previewing the recipient and content first, then sending only after explicit approval.
Instructions
Send a WhatsApp text message to a person or a group.
Safety: with confirm=false (the default) NOTHING is sent; the tool returns a preview (resolved recipient, their name, whether it is a group, the text). Show it to the user and call again with confirm=true only after they approved that exact content. Never set confirm=true on the first call. Recipient: phone number with country code and no plus sign, a JID (123@s.whatsapp.net, 123@g.us for a group) or a contact name.
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": {
"recipient": "<recipient>",
"message": "<message>"
},
"name": "send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | false (default) only previews; true sends, after the user approved the preview | |
| message | Yes | text to send | |
| recipient | Yes | phone number with country code (no +), a JID (x@s.whatsapp.net or x@g.us) or a contact name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sent | Yes | true only when the message left the account | |
| message | Yes | human-readable status | |
| preview | No | ||
| timestamp | No | server timestamp of the sent message | |
| message_id | No | ||
| needs_confirmation | Yes | true when this was a preview: repeat the call with confirm=true after the user approved |