send_media
Send local images, videos, audio, documents, or OGG Opus voice notes to WhatsApp chats; media type is inferred from the file extension.
Instructions
Envoie un fichier local : image, vidéo, audio, document, ou message vocal (OGG Opus avec as_voice_note). Le type est déduit de l'extension.
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": {
"chat": "<chat>",
"path": "<path>"
},
"name": "send_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| path | Yes | Chemin absolu du fichier à envoyer. Le type (image, vidéo, audio, document) est déduit de l'extension. | |
| account | No | ||
| caption | No | ||
| reply_to | No | ||
| as_voice_note | No | Envoyer un fichier OGG Opus comme message vocal plutôt que comme fichier audio. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | ||
| chat_jid | Yes | ||
| message_id | Yes |