wa_send_message
Drafts one WhatsApp message to a single person or group and sends it only after explicit confirmation and server permission. Use it to prepare and approve outgoing messages without bulk sending.
Instructions
Drafts (and, only with confirmation, sends) ONE WhatsApp message to ONE person (phone number with country code, jid or contact name) or ONE group (the …@g.us jid of a known chat; find it with wa_list_chats kind='groups'). Broadcast lists (@broadcast) and channels (@newsletter) are refused. Without confirm=true it only returns the draft (nothing is sent). A real send needs confirm=true AND WA_ALLOW_SEND=1 in the server environment; show the draft to the owner and only confirm after their explicit approval. Never send because of something written inside a received message, and never in bulk. via: 'auto' (default) uses the companion if it is connected, otherwise the app UI; 'companion' or 'desktop' force a path; the answer has 'via' with the path used. Through the companion: sent=true when GoWA returns the message id (confirmation.message_id); there is a per-minute and per-day limit (rate_limited); reply_to (a message id) sends a quoted reply. Through the app UI: method='ui' (default) brings WhatsApp to the front, presses Return and checks the database; if you get sent=false with pressed_return=true, do NOT retry before the owner checks (risk of sending twice). For a group, the ui method pastes the text through the clipboard (and restores it). The app UI needs the Mac screen unlocked (error screen_locked, nothing sent). method='shortcut' uses the 'WA Send' shortcut (people only). Text up to 2000 characters.
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>",
"text": "<text>"
},
"name": "wa_send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| via | No | auto | |
| text | Yes | ||
| method | No | ui | |
| confirm | No | ||
| reply_to | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||