ComfyUI Node
MD: Advanced Text Input
A ComfyUI node in MD_Nodes/Text with 12 inputs and 6 outputs.
MD: Advanced Text Input
- processed_text
- original_text
- seed_used
- selected_seed
- text_length
- wildcard_count
◄text►
◄seed0►
◄seed_modefixed►
◄seed_list►
◄seed_offset0►
◄wildcard_modefalse►
◄strip_whitespacefalse►
◄lowercasefalse►
◄uppercasefalse►
◄remove_extra_spacestrue►
◄wildcard_syntaxcurly_braces►
◄debug_mode0 - Silent►
CategoryMD_Nodes/Text
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | TEXT INPUT • Purpose: Main text input area for prompts, YAML, JSON, etc. • Usage: Type raw text or use wildcards like {option1|option2}. • Note: Multi-line compatible. | |
| seedopt | INT | 00–9007199254740991 | RANDOM SEED • Purpose: Controls randomization for wildcard selection. • Range: 0 to 9,007,199,254,740,991 (JS Safe Max). • Note: Ignored if 'seed_mode' is set to 'random'. ⭐ Recommended: Fixed value for reproducible generation. |
| seed_modeopt | COMBO | fixed | SEED MODE • Purpose: Defines how the seed updates per execution. • Options: - fixed: Uses the exact seed value provided. - random: Generates a new seed every run. - increment: Auto-adds 1 to the seed (great for batches). ⭐ Recommended: 'fixed' for testing, 'increment' for batching. |
| seed_listopt | STRING | SEED LIST (WILDCARD) • Purpose: Randomly pick ONE seed from a wildcard string. • Example: {1234|5678|9012} or __42|777|1337__ • Output: Outputs chosen value to the 'selected_seed' INT. ⭐ Recommended: Leave empty unless injecting specific seeds. | |
| seed_offsetopt | INT | 00–9007199254740991 | SEED OFFSET • Purpose: Adds an integer offset to the seed before processing seed_list. • Effect: Helps reduce repetition in batch workflows. ⭐ Recommended: 0. |
| wildcard_modeopt | BOOLEAN | false | WILDCARD MODE • Purpose: Enable processing of {opt1|opt2} or __opt1|opt2__ patterns. • Effect: If disabled, text passes through exactly as written. ⭐ Recommended: True if writing dynamic prompts. |
| strip_whitespaceopt | BOOLEAN | false | STRIP WHITESPACE • Purpose: Removes leading/trailing whitespace from the ENTIRE block. ⭐ Recommended: False (unless cleaning bad JSON/YAML). |
| lowercaseopt | BOOLEAN | false | FORCE LOWERCASE • Purpose: Converts entire output text to lowercase. • Note: Overrides 'Force Uppercase' if both are true. ⭐ Recommended: False. |
| uppercaseopt | BOOLEAN | false | FORCE UPPERCASE • Purpose: Converts entire output text to UPPERCASE. ⭐ Recommended: False. |
| remove_extra_spacesopt | BOOLEAN | true | REMOVE EXTRA SPACES • Purpose: Collapses multiple spaces into single spaces. ⭐ Recommended: True (keeps prompts clean). |
| wildcard_syntaxopt | COMBO | curly_braces | WILDCARD SYNTAX • Purpose: Choose the pattern style for wildcard parsing. • Options: {curly_braces} or __double_underscore__. ⭐ Recommended: curly_braces. |
| debug_modeopt | COMBO | 0 - Silent | LOGGING VERBOSITY • Controls console output and parser profiling. |
Outputs (6)
| Name | Type | Description |
|---|---|---|
| processed_text | STRING | — |
| original_text | STRING | — |
| seed_used | INT | — |
| selected_seed | INT | — |
| text_length | INT | — |
| wildcard_count | INT | — |