Nodes/WebApp API/String input
ComfyUI Node

String input

WebApp String input, one line or many

By MonkeyProof-Solutions-BV·Created 6 months ago·Updated 3 months ago· 2
String input
  • parent
  • value
  • Order + 1
mode
order10
advancedfalse
value_from_interface
tooltip

Every form needs a place to type words, and WebApp_Stringinput is where this pack puts it. It declares a text control in the web app your workflow becomes - the prompt box, the negative prompt box, a description field, whatever needs free text instead of a dropdown. You define it in ComfyUI, export the workflow API, and a framework like Simian WebApps renders the actual text field and feeds the typed value back into the graph.

The one structural quirk that trips people up: this node has no bare "text" input floating on the canvas. Instead, the mode combo decides the shape - Singleline or Multiline - and that choice carries the text fields with it. Pick the mode, type your text there, and the string flows out the value output. That's why mode is required and there's no separate input widget staring at you.

What you set

  • mode (combo) - Singleline (one-line field) or Multiline (a bigger text area). This is where the actual text goes.
  • order (INT, default 10) - control position in its section; lower numbers first.

The optional advanced flag hides the field unless the app is in advanced mode; parent attaches it to a WebApp_Grouping; tooltip is the hover text; and value_from_interface is a JSON string the app injects to override the value from the API side - leave it alone unless you're writing framework code.

The output

  • value (STRING, a list) - the text, downstream to your CLIP encoder or wherever the prompt belongs. It's a list because the pack leans on ComfyUI's list processing: the app can hand over several strings and the workflow loops over them.
  • Order + 1 (INT) - the auto-sequence chain slot. Plug it into the next control's order input to number controls automatically.

Installing it

cd ComfyUI/custom_nodes
git clone https://github.com/MonkeyProof-Solutions-BV/ComfyUI_webapp

Restart ComfyUI, or use ComfyUI Manager → search ComfyUI_webapp (listed as "WebApp API"). No models, no keys; dependencies are just pillow and torch, both standard.

Gotchas

The mode-first layout is the thing to get used to - if you can't find where to type, you haven't set mode yet. And the version note applies here as everywhere in this pack: it's written against the newer backend node API (comfy_api.latest), so a stale ComfyUI won't load it. Node missing after install is a ComfyUI-update problem, not a you problem.

Categoryapi/app

Inputs (6)

NameTypeDefaultDescription
modeCOMBOString mode; single or multi line text.
orderINT10Control order in its section. Lowest value at the top. Highest at the bottom.
advancedoptBOOLEANfalseControl is only shown when advanced is True.
value_from_interfaceoptSTRINGTo be used when modifying the workflow API json from an external interface. Note that this string is interpreted as a json string.
parentoptPARENTWeb app parent to add the node to.
tooltipoptSTRINGWeb app control tooltip.

Outputs (2)

NameTypeDescription
valueSTRINGOutput value.
Order + 1INTOrder number for the next control.