SR String Prompt Input (Mikey)
SR String Prompt Input (Mikey) — ComfyUI Node
- STRING
The string version of the "SR" input family, and the same story as its int and float siblings: one input_str widget, one STRING output, no processing in between. It exists so a piece of text can have its own named wire in the graph rather than being retyped in three places.
Why bother with a node that does nothing
Because "does nothing" is the point. In a workflow built around this pack's placeholder and wildcard system - SearchAndReplace, the __wildcard__ syntax, TextCombinations - you often want one clearly-labeled place where a specific piece of text lives, so you can change it once and have it flow everywhere it's used. Rename the node to something meaningful ("character name," "location," "style keyword") and it doubles as a lightweight, self-documenting input for anyone reading the graph later. It's the same idea as SRIntPromptInput and SRFloatPromptInput, just for text instead of numbers - the "SR" prefix across all three points at their role feeding the pack's Search-And-Replace-style prompt system rather than at any string manipulation happening inside the node itself.
It's a small thing, but in a workflow with fifty nodes it's genuinely the difference between "where do I even change the character's name" and "oh, it's that node right there."
Take a batch of portrait generations that all share a location but vary everything else through wildcards. Instead of retyping "abandoned lighthouse at dusk" into every branch of the graph that needs it, one SRStringPromptInput holds it, and every downstream SearchAndReplace or TextCombinations node that needs the location reads from the same wire - change it once, and it changes everywhere at once.
Input and output
input_str- a plain string widget. No default is defined, so it starts blank or at whatever ComfyUI's generic default is until you type something in.- Output - one
STRING, unmodified, ready to wire into a CLIP Text Encode,SearchAndReplace, a filename prefix, or anywhere else that wants text.
Installing it
ComfyUI Manager, search "Mikey Nodes," install, restart. Or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/bash-j/mikey_nodes
then restart ComfyUI. No dependencies beyond the pack itself, and no model or file downloads tied to this node.
Troubleshooting
Almost nothing can go wrong with a pass-through node, which means the rare confusion is always upstream of it: you edited a duplicate copy of the node instead of the one that's actually wired in, or you're staring at a saved workflow JSON where the widget reverted to blank. If the text you typed isn't showing up where you expect, trace the actual connection rather than assuming the node itself is broken - it isn't doing anything clever enough to break.
If what you actually need is text manipulation - combining two strings, swapping placeholders, padding to a length - that's TextCombinations, SearchAndReplace, or TextPadderMikey in this same pack, not this one.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| input_str | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |