Send WhatsApp Document
whatsapp_send_documentSend a document (PDF, DOCX) to a WhatsApp user by providing a public URL and recipient phone number.
Instructions
Send a document (PDF, DOCX, etc.) to a WhatsApp user via a public URL.
Args:
to (string): Recipient phone number
document_url (string): Public URL of the document
filename (string, optional): Display filename
caption (string, optional): Document caption
Returns: Message ID and delivery status.
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>",
"document_url": "<document_url>"
},
"name": "whatsapp_send_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient phone number in international format (e.g. '353851234567' or '+353851234567') | |
| caption | No | Optional caption for the document | |
| filename | No | Display filename for the document | |
| document_url | Yes | Public URL of the document to send | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for structured data | markdown |