download_file
Downloads network files to a local cache through NapCat/OneBot 11 and returns the local absolute path for AI-driven QQ workflows.
Instructions
通过 NapCat 下载网络文件到本地缓存目录并返回本地绝对路径 (OneBot 11: download_file)。 :param url: 文件下载 URL :param thread_count: 下载线程数,默认 3 :param headers: 自定义请求头列表 (如 ["User-Agent=xxx"])
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | 文件下载 URL | |
| headers | No | 自定义请求头列表 (如 ["User-Agent=xxx"]) | |
| thread_count | No | 下载线程数,默认 3 |