send_document
Send a document file to a Telegram chat by providing the file path and chat ID. Optionally add a caption and reply to a specific message.
Instructions
Send a document 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_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | The chat ID to send document to | |
| caption | No | Optional caption for the document | |
| filePath | Yes | Path to the document file to send | |
| replyToMessageId | No | Optional message ID to reply to |