Skip to main content
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

ParameterDescriptionData TypeRequiredRange
textThe text string to be truncated.STRINGYesN/A
max_lengthMaximum text length. The text will be cut off after this many characters (default: 77).INTYes1 to 10000

Outputs

Output NameDescriptionData Type
stringThe truncated text, containing only the first max_length characters from the input.STRING
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): b23c92af425be8f7b15d793bbe7f321cab6f7f3137a995bb9724948ae00145e4