Send WhatsApp message
send_messageSend WhatsApp text or media messages from a hosted LoginWA device, supporting OTPs, alerts, and broadcasts without managing your own infrastructure.
Instructions
Send a WhatsApp text or media message from a connected LoginWA device. Media types require a public https media_url.
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": {
"phone": "<phone>"
},
"name": "send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ptt | No | For audio: send as voice note when true | |
| type | No | Message type (default text) | |
| phone | Yes | Recipient phone (E.164/digits) or group JID (...@g.us) | |
| caption | No | Optional caption for media | |
| message | No | Text body (required for type=text) | |
| filename | No | Optional document filename | |
| mimetype | No | Optional MIME type hint | |
| device_id | No | Optional device to send from | |
| media_url | No | Public https URL for media types |