Array Flattener
Flatten multidimensional arrays into one-dimensional arrays with customizable depth
API Documentation
Request Endpoint
POST /en/api/tools/array-flattener
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| arrayInput | textarea | Yes | - |
| inputFormat | select | Yes | - |
| flattenDepth | number | No | - |
| outputFormat | select | Yes | - |
| removeNulls | checkbox | No | - |
| removeDuplicates | checkbox | No | - |
| sortBy | select | Yes | - |
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-array-flattener": {
"name": "array-flattener",
"description": "Flatten multidimensional arrays into one-dimensional arrays with customizable depth",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=array-flattener",
"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]