Built-in tool
Split text into items
Split text into separate items using a chosen delimiter.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| inputTextstring · required | string | required | The text to split into an array. Example: |
| separatorstring · optional | string | optional | Delimiter to split the text on. Supports \n for newline. Default is a comma (,). Example: |
| trimItemsboolean · optional | boolean | optional | Trim leading/trailing whitespace from each resulting item. |
| ignoreEmptyboolean · optional | boolean | optional | Drop empty strings from the result (applied after trimming). |
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
}