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.
Modes
This node reconfigures itself depending on the selected mode — each mode has its own fields.
| Mode | What it does | Output |
|---|---|---|
| Reverse List | Reverse the order of list items | JSON |
| Join as Text | Join list items into a single text | Text |
| Separate Items | Output each item separately | JSON |
| Get Element | Get a specific element by index | JSON |
| Get First | Get the first item in a list | JSON |
| Get Last | Get the last item in a list | JSON |
| Rotate List | Rotate list by moving first N items to the end | JSON |
| Filter Empty | Remove empty/null items | JSON |
| Deduplicate | Remove duplicate items | JSON |
| Sort List | Sort list items | JSON |
| Slice List | Extract a range of items | JSON |
| Count Items | Count the number of items | JSON |
| Merge Lists | Combine two lists into one | JSON |
Reverse List
Reverse the order of list items
Inputs
Each input can be typed in directly or connected to another node's output.
| Input | Type | Required | Description |
|---|---|---|---|
| Input List | List | Required | Provide the list of items you want to process. |
Output: JSON
Join as Text
Join list items into a single text
Inputs
Each input can be typed in directly or connected to another node's output.
| Input | Type | Required | Description |
|---|---|---|---|
| Input List | List | Required | Provide the list of items you want to process. |
| Join Character | Text | Optional | Character(s) to use when joining the list items. |
Output: Text
Separate Items
Output each item separately
Inputs
Each input can be typed in directly or connected to another node's output.
| Input | Type | Required | Description |
|---|---|---|---|
| Input List | List | Required | Provide the list of items you want to process. |
Output: JSON
Get Element
Get a specific element by index
Inputs
Each input can be typed in directly or connected to another node's output.
| Input | Type | Required | Description |
|---|---|---|---|
| Input List | List | Required | Provide the list of items you want to process. |
| Element Index | Number | Optional | Zero-based index. Negative values count from the end. |
Output: JSON
Get First
Get the first item in a list
Inputs
Each input can be typed in directly or connected to another node's output.
| Input | Type | Required | Description |
|---|---|---|---|
| Input List | List | Required | Provide the list of items you want to process. |
Output: JSON
Get Last
Get the last item in a list
Inputs
Each input can be typed in directly or connected to another node's output.
| Input | Type | Required | Description |
|---|---|---|---|
| Input List | List | Required | Provide the list of items you want to process. |
Output: JSON
Rotate List
Rotate list by moving first N items to the end
Inputs
Each input can be typed in directly or connected to another node's output.
| Input | Type | Required | Description |
|---|---|---|---|
| Input List | List | Required | Provide the list of items you want to process. |
| Rotate Count | Number | Optional | Number of positions to rotate (positive = move items from start to end). |
Output: JSON
Filter Empty
Remove empty/null items
Inputs
Each input can be typed in directly or connected to another node's output.
| Input | Type | Required | Description |
|---|---|---|---|
| Input List | List | Required | Provide the list of items you want to process. |
Settings
| Setting | Type | Default | Description |
|---|---|---|---|
| Treat Whitespace As Empty | Toggle | Off | Remove strings that contain only spaces, tabs, or line breaks. Non-empty strings are kept unchanged. |
Output: JSON
Deduplicate
Remove duplicate items
Inputs
Each input can be typed in directly or connected to another node's output.
| Input | Type | Required | Description |
|---|---|---|---|
| Input List | List | Required | Provide the list of items you want to process. |
Output: JSON
Sort List
Sort list items
Inputs
Each input can be typed in directly or connected to another node's output.
| Input | Type | Required | Description |
|---|---|---|---|
| Input List | List | Required | Provide the list of items you want to process. |
Settings
| Setting | Type | Default | Description |
|---|---|---|---|
| Sort Order | Select | Ascending | Order to sort the list. Options: Ascending (default) · Descending. |
Output: JSON
Slice List
Extract a range of items
Inputs
Each input can be typed in directly or connected to another node's output.
| Input | Type | Required | Description |
|---|---|---|---|
| Input List | List | Required | Provide the list of items you want to process. |
| Start Index | Number | Optional | Start index (inclusive). |
| End Index | Number | Optional | End index (exclusive). Leave empty for end of list. |
Output: JSON
Count Items
Count the number of items
Inputs
Each input can be typed in directly or connected to another node's output.
| Input | Type | Required | Description |
|---|---|---|---|
| Input List | List | Required | Provide the list of items you want to process. |
Output: JSON
Merge Lists
Combine two lists into one
Inputs
Each input can be typed in directly or connected to another node's output.
| Input | Type | Required | Description |
|---|---|---|---|
| Input List 1 | List | Required | Provide the list of items you want to process. |
| Input List 2 | List | Required | Provide the list of items you want to process. |
Output: JSON