whatsapp_send_document
Send a document through WhatsApp by supplying an uploaded media ID or a public HTTPS link, with optional caption and filename. Use it to deliver files directly to a recipient's phone number.
Instructions
Send a WhatsApp document message. Provide either a previously uploaded media.id or a public HTTPS link.
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>",
"media": "<media>"
},
"name": "whatsapp_send_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient phone number in E.164 (+55...) or wa_id | |
| media | Yes | ||
| access_token | No | Optional override for the access token (falls back to WHATSAPP_ACCESS_TOKEN env) | |
| phone_number_id | No | WhatsApp Business Phone Number ID (falls back to WHATSAPP_PHONE_NUMBER_ID env) |