send_file
Send a file (PDF, document, etc.) to a contact, group, or channel via a public URL.
Instructions
Send a file (PDF, document, etc.) to a contact, group, or channel via a public URL.
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": {
"chatId": "<chatId>",
"fileUrl": "<fileUrl>"
},
"name": "send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | Recipient: phone number, group ID, or channel ID | |
| fileUrl | Yes | Public URL of the file | |
| session | No | Session name. Leave out when using a session token (ch_live_...). | me |
| filename | No | Filename to display in the chat |