Comet 文本卡片
A reusable prompt or text block you can wire anywhere
- text
"Comet 文本卡片" is the pack's answer to "I keep typing the same prompt in five places." It's a value node: hold a text block in one place, wire it out to as many consumers as you need, and change it once when it needs updating. That's the whole job, and it does it cleanly - which is more than you'd think, because a surprising number of text nodes in the wild mangle your text on the way through.
This is plumbing, not magic. The ComfyUI-node-plumbing crowd would recognize it instantly: one source, many consumers, the cure for the silent mismatch you get when the same value lives in five widgets and you forget to update one of them.
How it works
The node has two ways in, and it prefers the wired one. content is the multiline text box baked into the node - your stored prompt, notes, whatever. text is an optional input socket, and if anything is connected to it, that incoming value wins over the typed content. So you can use it as a static card (just type in content, wire out text) or as a pass-through that happens to display what came in. The output is a single text string.
The trick that makes it a card rather than a plain primitive: it also broadcasts its value to the pack's UI (comet_text), so it shows up in CometAPI's canvas text display - handy when you're juggling several prompt blocks and want to see which one is which at a glance.
Where it fits in a workflow
The canonical use: keep your base style prompt in a Comet 文本卡片, wire it into a Comet 文本 (LLM) node or a Comet 图像 node's prompt, and if you tweak the style you change one node instead of hunting through the graph. Combined with the Comet 文本追加 node you can also compose - base style in one card, subject line in another, appended together downstream. The one thing it's not is a batch list node; for multiple prompts that feed the batch image machinery, use Comet 批量文本卡片 instead.
Install
Part of the ComfyUI-CometAPI pack. Install via ComfyUI Manager (search "ComfyUI-CometAPI") or:
cd ComfyUI/custom_nodes
git clone https://github.com/jieg9341-lab/ComfyUI-CometAPI.git
Restart ComfyUI. No dependencies beyond the pack's requests/aiohttp, no API key needed - this node never calls the network, so it's one of the few in the pack that works before you've configured anything.
Gotchas
- Incoming
textsilently overridescontent. If your card looks wrong, check whether a stray wire is connected to thetextinput - that's almost always it. - It's not an LLM call. The name is "card," not "generation," so don't expect the content to be rewritten or enhanced. If you want that, pipe it through Comet 文本 first.
- The pack is Chinese-first. The UI labels follow the display names in this article; the node's internal behavior is the same either way, but the placeholder text you'll see in the canvas is Chinese.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| content | STRING | — | |
| textopt | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |