tg_send_file
Send local files to a Telegram chat, with support for sending multiple files as an album, adding captions, sending audio as a voice message, and silent delivery.
Instructions
Send a local file as the user.
Args: chat: recipient. path: one path, or a list of paths to send them as a single album. caption: text attached to the file (or to the album). voice: send an audio file as a voice message. silent: deliver without a notification sound.
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": {
"chat": "<chat>",
"path": "<path>"
},
"name": "tg_send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| path | Yes | ||
| voice | No | ||
| silent | No | ||
| caption | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |