✂️
Split Text
base.text.splitBase SetUtilitySplits 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.
✂️Utility
Split Text
base.text.splittextrequired
{{message.content}}
delimiter
, or space or \n
asrequired
parts
Config fields
| Field | Type | Req | What it does |
|---|---|---|---|
text{{message.content}} | text | yes | Text to split 📝 |
delimiter, or space or \n | text | — | Delimiter |
asparts | text | yes | Save 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 partOutput 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[]More Utility pieces