download_file
Downloads a network file via NapCat/OneBot 11, stores it in the local cache, and returns its absolute path for AI agents to access.
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 |