tg_get_media
Download media from up to 10 Telegram messages and return photos, video thumbnails, transcripts, extracted text, and saved file paths for reuse or resending.
Instructions
Download the media of up to 10 messages and return it in a usable form.
Photos and images come back as images, video as a thumbnail plus transcript, voice/audio as a
transcript, text and PDF files as their text. Every file is saved on the server and its path is
returned (it can be sent again with tg_send_file). embed_file also attaches the raw file bytes.
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": "<chat>",
"message_ids": "<message_ids>"
},
"name": "tg_get_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| embed_file | No | ||
| transcribe | No | ||
| message_ids | Yes |