下载文件
download_fileRetrieve a file using its identifier code to get text or base64 content inline, save it to a local server path, or receive a download link for large files.
Instructions
根据标识码取回文件内容。 默认自动选择编码:文本类直接返回正文,二进制返回 base64。 传 savePath 可以直接写到服务器本地路径;文件过大时只返回链接。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | 上传时返回的标识码,大小写与连字符都可以,例如 7K2QF-9XM4T 或 7k2qf9xm4t | |
| encoding | No | none 表示只要元数据与链接 | |
| savePath | No | 将内容写入这个本地路径,而不是内联返回 | |
| maxInlineBytes | No | 内联返回的字节上限 |