Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
This node shortens text by cutting it off at a specified maximum length. It takes any input text and returns only the first part, up to the number of characters you set. It is a simple way to ensure text does not exceed a certain size.

Inputs

ParameterData TypeRequiredRangeDescription
textSTRINGYesN/AThe text string to be truncated.
max_lengthINTNo1 to 10000Maximum text length. The text will be cut off after this many characters (default: 77).

Outputs

Output NameData TypeDescription
stringSTRINGThe truncated text, containing only the first max_length characters from the input.