getFile
Retrieve basic file info from Telegram and receive a file_path for downloading files up to 20MB.
Instructions
Get basic info about a file and prepare it for downloading. Returns a File object with file_path for download. Files up to 20MB can be downloaded.
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>"
},
"name": "getFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | File identifier to get information about. |