ComfyUI Node
MD: YAML Utils (Architect)
A ComfyUI node in MD_Nodes/Utility with 5 inputs and 3 outputs.
MD: YAML Utils (Architect)
- value_input
- yaml_output
- value_output
- is_valid
◄yaml_input►
◄modePatch Key►
◄yaml_secondary►
◄target_key►
CategoryMD_Nodes/Utility
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| yaml_input | STRING | BASE YAML INPUT • Purpose: The primary YAML string to be processed. • Requirement: Must be a valid YAML structure (except for Template mode). | |
| mode | COMBO | Patch Key | EXECUTION MODE • Merge: Combines Base YAML with Secondary YAML. • Patch: Injects value at target_key (supports 'list.0.item'). • Template: Replaces {target_key} placeholders in text. • Validate: Checks syntax & outputs structure stats. ⭐ Recommended: Patch Key for dynamic workflows. |
| yaml_secondaryopt | STRING | SECONDARY YAML • Purpose: The data to merge into the Base YAML. • Note: Only used in 'Merge (A + B)' mode. | |
| target_keyopt | STRING | TARGET KEY / PATH • Purpose: Dot-notation path to modify (e.g. 'models.0.name' or 'seed'). • Template Mode: The exact string to replace (without brackets). | |
| value_inputopt | * | VALUE TO INJECT • Purpose: The data to insert at the target key. • Note: Automatically converts strings like '[1,2]' to real Python lists. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| yaml_output | STRING | — |
| value_output | * | — |
| is_valid | BOOLEAN | — |