Send WhatsApp message
send_messageSend WhatsApp messages from your personal account to a contact, phone number, or yourself. Supports plain text, local files, or files with captions, with recipient validation.
Instructions
Send a WhatsApp message from the user's personal account: plain text, a local file (image, video, or document), or a file with a caption. recipient accepts: a contact name (must match EXACTLY one saved contact, case-insensitive — if zero or several match, the call fails and lists the candidates so you can ask the user which one they meant), a phone number in international format (e.g. +962791234567), or 'me' to message the user's own self-chat. A phone number that isn't a saved contact is refused on the first call — the error asks you to confirm with the user, then call again with confirmed: true; this exists because a saved contact's name can collide with an unrelated WhatsApp account (e.g. someone's self-set display name), so a bare number deserves the same caution. Provide message, file_path, or both — when both are given, message becomes the file's caption. Media type is auto-detected from the file's extension; unrecognized extensions are sent as a generic document. The result confirms exactly who/what was sent. Never retry a failed send blindly — read the error, it tells you what to fix. Sending is a real-world side effect: unless the user explicitly dictated both the recipient and the exact message/file, confirm with them before calling this.
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>"
},
"name": "send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | The text message to send. Required unless file_path is given; when both are given, this becomes the file's caption. | |
| confirmed | No | Required (set to true) to send to a phone number that is not a saved contact. Omit on the first attempt; only set this after the user has explicitly confirmed that number is correct. | |
| file_path | No | Absolute local path to an image, video, or other file to send. Media type is auto-detected from the extension; unrecognized extensions are sent as a generic document. | |
| recipient | Yes | Contact name (exact match), international phone number, or 'me' |