wa_send_document
Send a local or URL-based document to a WhatsApp number or group JID, optionally setting the displayed file size without altering the file.
Instructions
Send a document (local file) to a user number or group JID. Optional file_length (bytes) overrides the size WhatsApp displays for the document — the file itself is sent unchanged (used by the -fakedoc prank).
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>"
},
"name": "wa_send_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Phone number (e.g. 923001234567), or full JID ...@g.us | |
| url | No | File URL to fetch and send (alternative to file_path) | |
| file_name | No | Name shown for the document (default: the file base name) | |
| file_path | No | Absolute path of the local file to send | |
| file_length | No | Displayed size in bytes (display only; does not change the file) |