下载 Figma 设计资源到本地
figma_download_assetsAnalyze a Figma node, extract its image and SVG assets, and save them to a local directory for design-to-code workflows.
Instructions
分析指定节点并将所有图片/SVG 资源下载到本地目录。
流程:
获取 metadata + design-context
运行语义分析,提取 assets 列表
通过 localhost URL 下载每个资源文件
返回下载结果摘要
Args:
node_id (string, 必填): Figma 节点 ID
out_dir (string, 必填): 资源保存目录
Returns: 下载摘要(成功/失败数量,文件列表)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | Figma 节点 ID,先分析该节点获取 assets 列表 | |
| out_dir | Yes | 资源保存目录路径(相对于工作区根目录或绝对路径) |