Skip to main content

List Tools

Use this node to perform various list operations such as reversing, joining, and outputting items separately.

The List Tools Node allows you to perform various operations on a list of items, such as reversing, joining, and more.

This node is particularly useful in combination with Subflow Loop.

List ToolsReverse List
Input List*List
Node as configured in “Reverse List” mode. Fields marked * are required. Dots are connection handles.

Modes

This node reconfigures itself depending on the selected mode — each mode has its own fields.

ModeWhat it doesOutput
Reverse ListReverse the order of list itemsJSON
Join as TextJoin list items into a single textText
Separate ItemsOutput each item separatelyJSON
Get ElementGet a specific element by indexJSON
Get FirstGet the first item in a listJSON
Get LastGet the last item in a listJSON
Rotate ListRotate list by moving first N items to the endJSON
Filter EmptyRemove empty/null itemsJSON
DeduplicateRemove duplicate itemsJSON
Sort ListSort list itemsJSON
Slice ListExtract a range of itemsJSON
Count ItemsCount the number of itemsJSON
Merge ListsCombine two lists into oneJSON

Reverse List

Reverse the order of list items

List ToolsReverse List
Input List*List

Inputs

Each input can be typed in directly or connected to another node's output.

InputTypeRequiredDescription
Input ListListRequiredProvide the list of items you want to process.

Output: JSON

Join as Text

Join list items into a single text

List ToolsJoin as Text
Input List*List
Join CharacterText

Inputs

Each input can be typed in directly or connected to another node's output.

InputTypeRequiredDescription
Input ListListRequiredProvide the list of items you want to process.
Join CharacterTextOptionalCharacter(s) to use when joining the list items.

Output: Text

Separate Items

Output each item separately

List ToolsSeparate Items
Input List*List

Inputs

Each input can be typed in directly or connected to another node's output.

InputTypeRequiredDescription
Input ListListRequiredProvide the list of items you want to process.

Output: JSON

Get Element

Get a specific element by index

List ToolsGet Element
Input List*List
Element IndexNumber

Inputs

Each input can be typed in directly or connected to another node's output.

InputTypeRequiredDescription
Input ListListRequiredProvide the list of items you want to process.
Element IndexNumberOptionalZero-based index. Negative values count from the end.

Output: JSON

Get First

Get the first item in a list

List ToolsGet First
Input List*List

Inputs

Each input can be typed in directly or connected to another node's output.

InputTypeRequiredDescription
Input ListListRequiredProvide the list of items you want to process.

Output: JSON

Get Last

Get the last item in a list

List ToolsGet Last
Input List*List

Inputs

Each input can be typed in directly or connected to another node's output.

InputTypeRequiredDescription
Input ListListRequiredProvide the list of items you want to process.

Output: JSON

Rotate List

Rotate list by moving first N items to the end

List ToolsRotate List
Input List*List
Rotate CountNumber

Inputs

Each input can be typed in directly or connected to another node's output.

InputTypeRequiredDescription
Input ListListRequiredProvide the list of items you want to process.
Rotate CountNumberOptionalNumber of positions to rotate (positive = move items from start to end).

Output: JSON

Filter Empty

Remove empty/null items

List ToolsFilter Empty
Input List*List
Treat Whitespace As EmptyToggle

Inputs

Each input can be typed in directly or connected to another node's output.

InputTypeRequiredDescription
Input ListListRequiredProvide the list of items you want to process.

Settings

SettingTypeDefaultDescription
Treat Whitespace As EmptyToggleOffRemove strings that contain only spaces, tabs, or line breaks. Non-empty strings are kept unchanged.

Output: JSON

Deduplicate

Remove duplicate items

List ToolsDeduplicate
Input List*List

Inputs

Each input can be typed in directly or connected to another node's output.

InputTypeRequiredDescription
Input ListListRequiredProvide the list of items you want to process.

Output: JSON

Sort List

Sort list items

List ToolsSort List
Input List*List
Sort OrderSelect

Inputs

Each input can be typed in directly or connected to another node's output.

InputTypeRequiredDescription
Input ListListRequiredProvide the list of items you want to process.

Settings

SettingTypeDefaultDescription
Sort OrderSelectAscendingOrder to sort the list. Options: Ascending (default) · Descending.

Output: JSON

Slice List

Extract a range of items

List ToolsSlice List
Input List*List
Start IndexNumber
End IndexNumber

Inputs

Each input can be typed in directly or connected to another node's output.

InputTypeRequiredDescription
Input ListListRequiredProvide the list of items you want to process.
Start IndexNumberOptionalStart index (inclusive).
End IndexNumberOptionalEnd index (exclusive). Leave empty for end of list.

Output: JSON

Count Items

Count the number of items

List ToolsCount Items
Input List*List

Inputs

Each input can be typed in directly or connected to another node's output.

InputTypeRequiredDescription
Input ListListRequiredProvide the list of items you want to process.

Output: JSON

Merge Lists

Combine two lists into one

List ToolsMerge Lists
Input List 1*List
Input List 2*List

Inputs

Each input can be typed in directly or connected to another node's output.

InputTypeRequiredDescription
Input List 1ListRequiredProvide the list of items you want to process.
Input List 2ListRequiredProvide the list of items you want to process.

Output: JSON

Output