ComfyUI Node
π§° Ray's Model Tools: Metadata Save
Save metadata as a structured JSON sidecar, or apply it to a safetensors copy without changing any tensor bytes.
π§° Ray's Model Tools: Metadata Save
- metadata
- saved_path
βmodejson_sidecarβΊ
βfilename_prefixmodel_tools/Ray_MetadataβΊ
βoverwritefalseβΊ
βmetadata_jsonβΊ
βsource_model_pathβΊ
βoutput_pathβΊ
Categoryπ Ray/π§° Model Tools
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| mode | COMBO | json_sidecar | Save a standalone JSON metadata sidecar, or copy a source model with new embedded metadata while preserving its tensor bytes. |
| filename_prefix | STRING | model_tools/Ray_Metadata | Name or prefix for automatic output under ComfyUI's output folder. An explicit Output file takes precedence when available. |
| overwrite | BOOLEAN | false | Allow replacement of an existing destination file. Off preserves existing files and reports a filename collision instead of replacing them. |
| metadataopt | RAY_MODEL_METADATA | Structured model metadata from another node. Use Metadata Load / Edit to inspect or change its fields. | |
| metadata_jsonopt | STRING | Additional metadata as a JSON object. Values may be text or JSON values; duplicate keys and invalid numbers are rejected. | |
| source_model_pathopt | STRING | Source safetensors model whose tensor bytes will be copied with the supplied metadata. Required in model-copy mode. | |
| output_pathopt | STRING | Optional explicit destination file on the ComfyUI server. Leave blank for automatic output naming; the extension must match the selected output mode. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| saved_path | STRING | Actual server path of the completed output file. Emitted only after a successful save. |