K
Docs
API ReferencePiecesSplit Text
✂️

Split Text

base.text.splitBase SetUtility

Splits text into a list using a delimiter — comma, space, newline, or any string. Great for parsing command arguments, CSV-style data, or multi-line input.

When to use this
  • Leave delimiter empty to get a single-item list
  • Use with Loop to handle each part

On the canvas

This is what Split Text looks like when you place it on your flow. Each field below is something you configure in the inspector panel.

✂️
Split Text
base.text.split
Utility
textrequired
{{message.content}}
delimiter
, or space or \n
asrequired
parts

Config fields

FieldTypeReqWhat it does
text
{{message.content}}
textyesText to split 📝
delimiter
, or space or \n
textDelimiter
as
parts
textyesSave list as ✨

Sparks this piece adds

After this piece runs, these values are available as sparks in every node downstream.

{{parts}}arraySplit text list
{{parts.length}}numberNumber of items in parts
{{parts.0}}stringFirst split part

Output ports

outputList spark is ready downstream
📐

In TypeScript, this would be…

Not something you need to write — just a look at what Kitcord does for you.

TypeScript
const parts = text.split(",");
// delimiter "," — {{parts}} is a string[]