send_attachment
Send an image, video, audio, or document attachment to a WhatsApp recipient from a public URL. The file type is inferred from the URL extension.
Instructions
Envía un archivo adjunto por WhatsApp desde una URL pública (imagen, video, audio o documento). El tipo se infiere de la extensión de la URL. from_id es opcional si WASAPI_FROM_ID está configurado.
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": {
"wa_id": "<wa_id>",
"file_url": "<file_url>"
},
"name": "send_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wa_id | Yes | WhatsApp ID del destinatario (E.164 sin +) | |
| caption | No | Texto descriptivo opcional para el adjunto | |
| from_id | No | ID del número de WhatsApp emisor. Usa WASAPI_FROM_ID si se omite. | |
| file_url | Yes | URL pública del archivo. El tipo (imagen/video/audio/documento) se infiere de la extensión de la URL; sin extensión reconocida se envía como documento. | |
| filename | No | Nombre con el que el destinatario recibe el archivo (útil para documentos) |