text_text_joiner
Join an array or newline-separated text elements into one string with custom separators and structured output formats (CSV, JSON, HTML, etc.). Optionally trim, deduplicate, sort, or add prefixes/suffixes.
Instructions
Text Joiner. Join an array (or newline-separated string) of text elements into one string using a chosen separator, with optional trim, deduplicate, sort, prefix/suffix, drop-empty, and a structured output format (plain, csv, json, html-list, xml, numbered, bulleted, quoted, sql-values). Use this to merge lines/items; use text_splitter for the inverse (breaking one string into parts). Pure local compute: read-only, non-destructive, offline, and rate-limited (60 requests/min for anonymous callers). Returns the joined result plus element/length statistics and the effective settings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elements | Yes | Items to join: an array of strings, or a single string that is split on newlines (blank lines dropped). | |
| separator | No | String inserted between elements (ignored by csv/json/xml/html-list/sql-values formats, which use their own delimiters). | |
| format | No | Output structure. text joins with separator; others emit CSV row, JSON array, HTML/XML list, numbered/bulleted/quoted lines, or a SQL VALUES tuple. | text |
| removeEmpty | No | Drop elements that are empty or whitespace-only before joining. | |
| trimElements | No | Trim leading/trailing whitespace from each element. | |
| addPrefix | No | String prepended to every element after trim/sort. | |
| addSuffix | No | String appended to every element after trim/sort. | |
| sort | No | Lexicographically sort elements before joining. | |
| sortDirection | No | Sort order when sort is true. | asc |
| unique | No | Remove duplicate elements, keeping first occurrence. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Always true on success. | |
| result | No | The joined output string in the chosen format. | |
| stats | No | Metrics over the processed elements. | |
| settings | No | Effective options applied: separator, format, removeEmpty, trimElements, addPrefix, addSuffix, sort, sortDirection, unique. |