get_media
Download any attachment from a specific Telegram message and return its local file path so you can inspect PDFs, scans, contracts, archives, videos, or other files outside the chat.
Instructions
Скачать вложение конкретного сообщения и вернуть путь к файлу на диске. Нужно, когда содержательное лежит не в тексте: счёт в PDF, скан, договор, архив, видео или файл любого типа. Номер сообщения берётся из выдачи read_chat — там медиа помечены как «msg 1234». Полный оригинал до фактического download-лимита Telegram кладётся на диск; открывай его дальше обычными средствами сессии.
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>",
"message_id": "<message_id>"
},
"name": "get_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | из find_dialogs | |
| message_id | Yes | номер сообщения из read_chat |