get_file
Retrieve Telegram file information to obtain a download path. Use the returned file_path with the Bot API to download the file.
Instructions
Get file info for downloading. Returns file_path — use https://api.telegram.org/file/bot/<file_path> to download.
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": "get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes |