Anygen Task Download

从完成的任务中下载生成的文件,支持指定文件或缩略图。

已扫描
适合谁
使用 AnyGen 进行内容生成的用户、需要自动获取任务输出文件的技术人员
不适合谁
未使用 AnyGen 的普通用户、无 API 密钥或权限的用户
国内可用性
需网络配置。可能需要网络配置或第三方服务可访问。
安装难度
新手友好(★☆☆)。基于终端操作、依赖、API Key 和本地环境要求的初步判断。

安装与下载

openclaw skills install @supertilico2001/anygen-task-download

Skill 说明

命令、参数、文件名以原文为准

task +download

前置要求: 请先阅读 [../anygen-shared/SKILL.md](../anygen-shared/SKILL.md) 了解认证方式、全局标志和安全规则。

从已完成的任务中下载生成的文件。

使用方法

anygen task +download --task-id <id> --output-dir <dir>

参数说明

参数必填说明
--task-id任务 ID
--output-dir本地保存文件的目录(默认为当前目录)
--file <name...>按文件名下载指定文件(可重复使用)
--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://..."
}

使用提示

  • 任务必须处于 completed 状态。如需等待,请先使用 task get --wait
  • 若不使用 --file,将下载全部输出文件。
  • 建议先使用 --thumbnail 查看预览,确认后再下载主文件。
  • 对于 smart_draw 类型的任务,图表文件会自动渲染为 PNG 格式。
  • --file 中指定的文件名应来自 task get 响应中的 output.files[].name 字段。

[!CAUTION]

此命令为 写入操作(将文件写入磁盘),请确认输出目录是否正确。

参考

  • [anygen-workflow-generate](../anygen-workflow-generate/SKILL.md) — 完整的内容生成工作流
S
@supertilico2001

已收录 1 个 Skill

相关推荐