send_message
Deliver WhatsApp messages to a contact or phone number using a bot ID, with support for text, images, documents, and interactive buttons.
Instructions
Send a message to a WhatsApp contact
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": {
"bot_id": "<bot_id>"
},
"name": "send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Message text | |
| phone | No | Recipient phone number | |
| bot_id | Yes | The ID of the bot | |
| buttons | No | Interactive buttons | |
| image_url | No | URL of image to send | |
| contact_id | No | Recipient contact ID (alternative to phone) | |
| document_url | No | URL of document to send | |
| document_name | No | Name of the document |