Categories

Uniq Array

Remove duplicates from an array using lodash _.uniq

Remove duplicate values from a JSON array. **Highlights:** - Uses lodash `_.uniq` - Keeps the first occurrence of each value - Returns unique values as JSON **Example:** - Array: `[1, 2, 2, 3]` - Result: `[1, 2, 3]`

Enter a JSON array

API Documentation

Request Endpoint

POST /en/api/tools/uniq-array

Request Parameters

Parameter Name Type Required Description
array textarea Yes Enter a JSON array

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-uniq-array": {
      "name": "uniq-array",
      "description": "Remove duplicates from an array using lodash _.uniq",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=uniq-array",
      "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]