> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# SaveSVGNode - ComfyUI Built-in Node Documentation

> Complete documentation for the SaveSVGNode node in ComfyUI. Learn its inputs, outputs, parameters and usage.

将 SVG 文件保存到磁盘。此节点接收 SVG 数据作为输入，并将其保存到输出目录，同时可嵌入元数据。节点会自动处理带计数器后缀的文件命名，并可将工作流提示信息直接嵌入 SVG 文件中。

## 输入

| 参数      | 描述                                                                                                  | 数据类型   | 是否必填 | 范围 |
| ------- | --------------------------------------------------------------------------------------------------- | ------ | ---- | -- |
| `svg`   | 要保存到磁盘的 SVG 数据                                                                                      | SVG    | 是    | -  |
| `文件名前缀` | 保存文件的前缀。可包含格式化信息，例如 `%date:yyyy-MM-dd%` 或 `%Empty Latent Image.width%`，以引用节点中的值。（默认值："svg/ComfyUI"） | STRING | 是    | -  |

## 输出

| 输出名称  | 描述                                     | 数据类型 |
| ----- | -------------------------------------- | ---- |
| `svg` | 返回文件信息，包括文件名、子文件夹和类型，用于在 ComfyUI 界面中显示 | DICT |

**注意：** 此节点会在可用时自动将工作流元数据（提示信息和额外 PNG 信息）嵌入 SVG 文件中。元数据以 CDATA 段的形式插入 SVG 的 metadata 元素内。

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/SaveSVGNode/zh.md)

***

**Source fingerprint (SHA-256):** `a294103d8d2306ce6765912a98c5572323bb5394909ee384591534b0b404ea70`
