send_document_message
Send documents via WhatsApp Business API by providing recipient phone number and document URL. Include optional caption and filename for the file being shared.
Instructions
Send a document message via WhatsApp Business API
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": "send_document_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient phone number with country code | |
| document_url | Yes | Public URL of the document to send | |
| caption | No | Optional caption for the document | |
| filename | No | Optional filename for the document | |
| phone_number_id | No | WhatsApp Business phone number ID (optional, uses env var if not provided) |