telegram_file_get
Fetch metadata or up to 256 KB of base64 content for a Telegram file by file_id, enabling bounded read-only file inspection without paths or URLs.
Instructions
Retrieves metadata or bounded base64 content for a Telegram file by file_id. Accepts ONLY Telegram file_id (int32 decimal string). Arbitrary file paths or URLs are strictly forbidden. Content reads are bounded to at most 262144 bytes (256 KB). Read only.
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_id": "<file_id>",
"mode": "<mode>"
},
"name": "telegram_file_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| file_id | Yes | ||
| max_bytes | No |