send_document
Send a file or document to any Telegram chat using a URL or file_id. Optionally include a caption with formatting.
Instructions
Send a file/document to a Telegram 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": {
"chat_id": "<chat_id>",
"document": "<document>"
},
"name": "send_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | Optional caption (up to 1024 characters). | |
| chat_id | Yes | Target chat id or @username. | |
| document | Yes | HTTP(S) URL of the file or a Telegram file_id. | |
| parse_mode | No | Formatting for the caption ("HTML", "Markdown", etc.). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||