telegram_send_file
Send a document or file to a Telegram chat using an absolute local path or public URL, with optional caption and parse mode for logs, diffs, screenshots, or reports.
Instructions
Send a document/file via an absolute local path or public URL (max 50 MB). Useful for build logs, diffs, screenshots and reports.
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": {
"file_path": "<file_path>"
},
"name": "telegram_send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | Optional caption (max 1024 chars). | |
| chat_id | No | Target chat ID (user, group, or channel). Omit to use TELEGRAM_DEFAULT_CHAT_ID. | |
| file_path | Yes | Absolute path to the file (e.g. /tmp/report.pdf) or a public URL. | |
| parse_mode | No | Caption parse mode. |