send_media
Send media files to a Telegram chat by providing the file path and chat ID. Optionally include a caption or reply to a message.
Instructions
Send media file to a chat
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>",
"filePath": "<filePath>"
},
"name": "send_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | The chat ID to send media to | |
| caption | No | Optional caption for the media | |
| filePath | Yes | Path to the media file to send | |
| replyToMessageId | No | Optional message ID to reply to |