ComfyUI > Nodes > ComfyUI > String

ComfyUI Node: String

Class Name

PrimitiveString

Category
utils/primitive
Author
ComfyAnonymous (Account age: 872days)
Extension
ComfyUI
Latest Updated
2025-05-13
Github Stars
76.71K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

String Description

Facilitates string data input/output in node-based systems, enhancing text operations efficiency.

String:

The PrimitiveString node is a fundamental component designed to handle string data within a node-based system. Its primary purpose is to facilitate the input and output of string values, making it an essential utility for various operations that require text manipulation or processing. This node is particularly beneficial for tasks that involve passing string data between different nodes or modules, ensuring seamless integration and data flow. By providing a straightforward mechanism to manage string data, the PrimitiveString node plays a crucial role in simplifying workflows and enhancing the efficiency of text-based operations.

String Input Parameters:

value

The value parameter is the core input for the PrimitiveString node, representing the string data that you wish to process or pass through the node. This parameter accepts any text string, allowing you to input a wide range of textual data, from simple words to complex sentences. The value parameter does not have predefined minimum or maximum length constraints, providing flexibility in the type and size of the string data you can input. This parameter is crucial as it directly influences the output of the node, with the input string being returned as the output. Understanding the role of the value parameter is essential for effectively utilizing the PrimitiveString node in your workflows.

String Output Parameters:

STRING

The output of the PrimitiveString node is a single string value, which is the same as the input value parameter. This output is crucial as it allows the string data to be passed to subsequent nodes or processes within your workflow. The STRING output ensures that the text data is preserved and can be further manipulated or utilized by other nodes, making it a vital component for maintaining data continuity and integrity in text-based operations.

String Usage Tips:

  • Use the PrimitiveString node to initialize or pass string data between nodes, ensuring that your text data is correctly formatted and ready for further processing.
  • When working with complex workflows that involve multiple string manipulations, the PrimitiveString node can serve as a simple yet effective way to manage and transfer string data between different stages of your process.

String Common Errors and Solutions:

Invalid Input Type

  • Explanation: This error occurs when the input provided to the value parameter is not a string.
  • Solution: Ensure that the input to the value parameter is a valid string. Convert any non-string data types to strings before inputting them into the node.

Empty String Output

  • Explanation: This issue arises when the input string is empty, resulting in an empty output.
  • Solution: Verify that the input string is not empty and contains the necessary data before passing it to the node. If an empty string is intentional, ensure that subsequent nodes can handle it appropriately.

String Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.