Bot: download file
bot_download_fileDownloads a file a user sent to the Bale bot (up to 20 MB) and returns its saved local path, adding numeric suffixes to avoid overwriting existing files.
Instructions
Download a file someone sent the bot (max 20 MB) and return its local path. Never overwrites (-1, -2, ... suffix).
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": "bot_download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Save folder (default ~/.bale-mcp/files). | |
| file_id | Yes | file_id from a received message. |