Nodes/MD Nodes/MD: YAML Utils (Architect)
ComfyUI Node

MD: YAML Utils (Architect)

A ComfyUI node in MD_Nodes/Utility with 5 inputs and 3 outputs.

By MDMAchine·Created about a year ago·Updated 2 months ago· 14
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)

NameTypeDefaultDescription
yaml_inputSTRINGBASE YAML INPUT • Purpose: The primary YAML string to be processed. • Requirement: Must be a valid YAML structure (except for Template mode).
modeCOMBOPatch KeyEXECUTION 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_secondaryoptSTRINGSECONDARY YAML • Purpose: The data to merge into the Base YAML. • Note: Only used in 'Merge (A + B)' mode.
target_keyoptSTRINGTARGET 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)

NameTypeDescription
yaml_outputSTRING
value_output*
is_validBOOLEAN