Categories

Concat Arrays

Concatenate multiple arrays using lodash _.concat

## Features - **Concatenate up to 5 arrays** into a single array - **Automatic flattening** of nested arrays in the result - **Optional deduplication** to remove duplicate values - **Smart type detection** for numbers, booleans, and objects - **Flexible input format** - JSON arrays or text representations ## Usage Examples **Basic concatenation:** ``` Array 1: [1, 2] Array 2: [3, 4] Array 3: [5, 6] Result: [1, 2, 3, 4, 5, 6] ``` **With nested arrays (auto-flattened):** ``` Array 1: [1, 2] Array 2: [[3, 4], 5] Result: [1, 2, 3, 4, 5] ``` **With deduplication enabled:** ``` Array 1: [1, 2, 3] Array 2: [3, 4, 5] Result (unique): [1, 2, 3, 4, 5] ``` **Mixed data types:** ``` Array 1: [1, "hello", true] Array 2: [null, {key: "value"}, [6, 7]] Result: [1, "hello", true, null, {key: "value"}, 6, 7] ```

API Documentation

Request Endpoint

POST /en/api/tools/concat-arrays

Request Parameters

Parameter Name Type Required Description
array1 textarea Yes -
array2 textarea No -
array3 textarea No -
array4 textarea No -
array5 textarea No -
flattenMode select No -
unique checkbox No -

Response Format

{
  "result": "Processed text content",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}
Text: Text

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-concat-arrays": {
      "name": "concat-arrays",
      "description": "Concatenate multiple arrays using lodash _.concat",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=concat-arrays",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]