prompt - input
A text field that cleans up after you
- text
Every workflow has a hand-edited prompt box, and every prompt box eventually holds something pasted from a model card with ragged spacing and tag , tag, tag chaos. prompt - input is the ymc pack's answer to that: a plain multiline text box, except anything you type or paste into it comes out normalized on the other side.
It's honestly the closest thing this pack has to a "just a text input" node, and that's why it's useful. Core ComfyUI's CLIP Text Encode takes a string too, but this one runs your text through the same std cleanup the pack uses everywhere: trim whitespace off each tag, collapse runs of spaces inside a tag to a single space, drop empty entries, rejoin on commas.
How it works
Mechanically it's one function: split on commas, clean each tag (strip edges, squeeze multiple spaces into one), discard empties, join back up. The multiline flag on the field is just UI - a big comfortable box - the processing itself is line-agnostic comma splitting.
So 1girl, long hair, , standing comes out as 1girl, long hair, standing. Which is exactly the kind of invisible fix that stops a prompt from silently confusing the model with junk tokens. On SDXL-lineage models where each tag is a vocabulary word, the whitespace noise is pure signal corruption - this scrubs it before it ever reaches the encoder.
The one catch to internalize: cleanup is per-tag on commas. A prompt written as natural-language sentences, or with meaningful line breaks, will have its commas preserved but won't magically become better English. This is a tag-list tool, not a grammar tool.
Inputs and outputs
text- multiline string field, default emptytextoutput - the cleaned, comma-separated string
Just two connections and you're done. Wire the output into your CLIP Text Encode, a prompt stack, or any of the other ymc text nodes.
Installing it
Part of ymc-node-suite-comfyui:
- ComfyUI Manager → search
ymc-node-suite-comfyui→ Install → restart, or
cd ComfyUI/custom_nodes
git clone https://github.com/YMC-GitHub/ymc-node-suite-comfyui
then restart. Manual clones additionally need pip install -r requirements.txt - four small yors_* helper libraries, and the pack's auto-install line is commented out, so without them the pack loads zero nodes. No models, no GPU requirements.
Search for prompt / input on the canvas, or right-click → ymc suite.
Common issues
- "Why did my multi-line prompt flatten?" It doesn't flatten newlines into commas the way
prompt - joinwould - it just cleans each comma-separated tag. If your text has newlines between tags, they survive inside the string and can throw off downstream dedupe/join nodes. Run things through here early and keep your downstream text nodes happy. - It's not a spell-checker.
long hairbecomeslong hair;loong hairstaysloong hair. - WAS Node Suite conflicts can show up as "Conflicted Nodes" on the pack's io/save nodes if you run both packs - unrelated to this node, but the most common pack-level warning people hit after installing.
If all you need is a big text box, this is the one. If you also want the box to strip weights or dedupe, the pack's prompt - unweight and prompt - dup nodes slot right after it.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |