Built-in tool
Shuffle array items
Randomly reorder items in an array.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| itemsrepeating-group · required | repeating-group | required | Add one or more data sources. Supports variable references and expressions. |
| limitOutputboolean · optional | boolean | optional | When enabled, only returns the first N items after shuffling. |
| maxItemsnumber · required if limitOutput is true and limitOutput is true | number | required if limitOutput is true and limitOutput is true | Maximum number of items to return from the shuffled array. Must be a positive whole number (>= 1). Example: |
Response schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"success"
],
"properties": {
"count": {
"type": "number",
"description": "Number of items in the result (populated for array results and the count action)."
},
"error": {
"type": "string"
},
"result": {
"description": "Transformed result. Type depends on the action: array, object, scalar, or number."
},
"success": {
"type": "boolean"
}
},
"additionalProperties": false
}