File context
tg_file_contextGathers a Telegram file message’s caption, nearby posts, album items, passwords, versions, links, and sizes; finds its description post in a given chat before download or archive extraction.
Instructions
Everything around one file message: its caption, neighbouring posts and album items, plus extracted passwords, versions, links and sizes. With intro_chat, also finds the matching description post in that chat. Use it before downloading or extracting archives.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tg_file_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | No | Chat: @username, username, t.me link, t.me/c/<id> link, or numeric id such as -100123… | |
| link | No | ||
| around | No | ||
| account | No | Account id (see tg_list_accounts). Defaults to the default account. | |
| intro_chat | No | Chat whose posts describe the files | |
| message_id | No |