works_download
Downloads a complete Douyin AR effect project and extracts it to a chosen empty folder or temp directory, returning the project path and file list for learning how the effect is built.
Instructions
下载一个首页作品的完整工程并解压(与在首页点开作品同一流程,但不打开窗口),返回工程目录和文件清单(files 列出相对路径和大小,可直接读取 effect.dyehpj、Assets 下的场景、Graph 下的脚本等来学习做法)。dest 给定时把工程放到该目录(须不存在或为空,跳过 Library 缓存),像塑临时目录里的那份随即删除。下载的工程(含 dest)都会登记,expires_at(24 小时)后在下次下载时自动删除;学完请立即调用 works_cleanup。要在编辑器里看效果用 works_open。作品版权归原作者,只用于学习参考,不要复制进自己的工程或仓库。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest | No | 工程要放到的文件夹绝对路径(须不存在或为空);省略时留在像塑的临时目录。 | |
| instance_id | No | 官方 list_instances 返回的 instance_id,与 project_path 二选一。 | |
| template_id | Yes | works_list / works_search / works_by_effect 返回的 template_id。 | |
| project_path | No | 目标工程的绝对路径。与 instance_id 二选一;只开了一个工程窗口时都可省略。 |