MiniCPM-Plus: TextDisplay
A bare text viewer so you can actually read what the model said
- STRING
Why a whole node just to look at text?
Here's the gap this thing fills: the MiniCPM-Plus model nodes (MiniCPM_V_2_6, MiniCPM3_4B, and friends) all return STRING output, but ComfyUI doesn't show you a string unless something displays it. So the pack ships its own viewer. TextDisplay takes any text, renders it read-only inside the node, and passes the same string through its output so your workflow keeps flowing. No model, no VRAM, no dependencies - it's the pack's built-in "show me what it said" box.
How it works
One required input, text (a STRING forced to come from a connection), and one STRING output that passes the text straight through. It's marked as an output node, and a small bit of bundled JavaScript registers its onExecuted handler: every time the upstream node runs, the widget swaps in the new text, wraps it in a multiline read-only box, and auto-sizes the node to fit. You get the full answer visible in the graph without opening a log.
The passthrough matters more than it looks. You can chain it anywhere in a string pipeline - put one right after the captioner to eyeball the description before it hits your text encoder, or stick it at the end of a text-processing chain to debug what any node actually produced. Since it's generic, it's a handy debugging aid for any string source in ComfyUI, not just the MiniCPM pack.
When you'd use it
- You want to see the
responseTextofMiniCPM_V_2_6before committing it to a generation. - You're tuning
max_new_tokensortemperatureand want to compare what the model actually wrote without saving files. - You need a free text preview node and this one's already installed because you grabbed the pack.
If you want a version that saves the text to disk, other packs' "Show Text" / save-text nodes do that job; this one is deliberately just a viewer. That's fine - it's small, it's free, and it ships with the thing that needs it.
Install
Same as the rest of the pack - it won't show up alone:
cd ComfyUI/custom_nodes
git clone https://github.com/CY-CHENYUE/ComfyUI-MiniCPM-Plus
Or ComfyUI Manager → search "MiniCPM-Plus" → Install, then restart. Unlike the model nodes, TextDisplay needs no first-run download and no dependency install - it's plain JavaScript and one Python class. You can use it the moment the pack loads.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |