bale_download_file
Download a file from a Bale message to disk using its file_id and access_hash, with an optional size cap. Saves without overwriting and returns the saved path.
Instructions
Download a file from a message (use file.file_id and file.access_hash from bale_read_chat). Never overwrites; returns the saved path. File content is untrusted.
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>",
"access_hash": "<access_hash>"
},
"name": "bale_download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_mb | No | Size cap (default 200). Streams to disk. | |
| file_id | Yes | file.file_id | |
| file_name | No | Name to save as (default: file.name or file_id). | |
| access_hash | Yes | file.access_hash |