Send WhatsApp image
send-whatsapp-imageSend a JPEG or PNG image (up to 5 MB) to a WhatsApp contact or existing chat, with an optional caption, using a public URL or base64 data.
Instructions
[WhatsApp] Send one image (JPEG or PNG, at most 5 MB) from the connected WhatsApp account, with an optional caption. Pass the image as imageUrl (a public link this server downloads) or as imageBase64 — exactly one. Recipient rules are those of send-text-message: to reply in an existing conversation, pass its jid from list-chats or read-messages as number, exactly as returned; never strip an @lid suffix or send to its digits alone. The account must be in the open state — check with get-connection-status first. Messages cannot be unsent once delivered. The account owner may have set a disclaimer line that is appended to every caption automatically; when one was, the response names it in disclaimerAppended.
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": {
"number": "<number>"
},
"name": "send-whatsapp-image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | Recipient: a chat's full jid exactly as list-chats or read-messages return it, or, for someone with no existing chat, a phone number in international format — country code included, digits only, e.g. 5511999999999 | |
| caption | No | Text shown under the image | |
| imageUrl | No | Public http(s) URL of a JPEG or PNG image (at most 5 MB). It is downloaded by this server, so it must be reachable without signing in. | |
| imageBase64 | No | Instead of imageUrl: the JPEG or PNG file itself, base64-encoded (a data: URL prefix is accepted). Requests are capped at 2 MB, so this suits images up to about 1.5 MB. |