运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install anygen-task-download
镜像加速npx clawhub@latest install anygen-task-download --registry https://cn.longxiaskill.com 镜像可用
技能文档
任务下载 PREREQUISITE:阅读 ../anygen-shared/SKILL.md 以了解认证、全局标志和安全规则。 从已完成的任务中下载构件。 用法:anygen task +download --task-id --output-dir
标志 标志 是否必需 描述 --task-id ✓ 任务 ID --output-dir — 保存文件的本地目录(默认:当前目录) --file — 按名称下载特定文件(可重复) --thumbnail — 下载缩略图图像而不是主文件 示例 # 下载所有输出文件 anygen task +download --task-id xxx # 按名称下载特定文件 anygen task +download --task-id xxx --file report.pptx anygen task +download --task-id xxx --file report.pptx --file data.xlsx # 下载缩略图(用于预览) anygen task +download --task-id xxx --thumbnail # 指定输出目录 anygen task +download --task-id xxx --output-dir ./output 输出 返回带有下载文件路径的 JSON: { "status": "completed", "task_id": "xxx", "files": [ { "file": "./report.pptx", "name": "report.pptx" }, { "file": "./data.xlsx", "name": "data.xlsx" } ], "task_url": "https://..." } 提示 任务必须处于已完成状态。如有需要,先使用 task get --wait。 不使用 --file 时,所有输出文件都将被下载。 先使用 --thumbnail 显示预览,然后在用户请求时下载主文件。 对于 smart_draw 任务,图表文件将自动渲染为 PNG。 --file 的文件名来自 task get 响应中的 output.files[].name 字段。 [!CAUTION] 这是一个写命令(将文件写入磁盘)- 确认输出目录与用户。 请参阅 anygen-workflow-generate — 全内容生成工作流