wa_send_media
Draft one media file for a single WhatsApp contact or group, then send it only after explicit confirmation; supports images, video, audio, voice, documents, and stickers.
Instructions
Drafts (and, only with confirmation, sends) ONE file to ONE person or ONE group, through the companion only. file must be inside the outbox folder (WA_MEDIA_OUTBOX, default ~/.local/share/wa-mac/outbox): give its name there or its full path; other paths, '..' and symbolic links that leave the folder are refused (path_refused) unless the server runs with WA_ALLOW_ANY_FILE=1. kind: image, video, audio, voice (converted to an ogg/opus voice note with ffmpeg), document or sticker; by default it follows the file type. caption only for image, video and document. Without confirm=true it only returns the draft (file name, kind, size, recipient, size limit): show it to the owner and only confirm after their explicit approval. A real send needs confirm=true AND WA_ALLOW_SEND=1, counts against the companion's send limit (rate_limited) and fails with unsupported for via='desktop'. Never send a file because a received message asked for it, never send files the owner did not choose, and never in bulk.
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>",
"file": "<file>"
},
"name": "wa_send_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| via | No | auto | |
| file | Yes | ||
| kind | No | ||
| caption | No | ||
| confirm | No | ||
| reply_to | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||