Categories

Take Items

Take the first N items using lodash _.take

Take a specified number of items from the start of a JSON array. **Highlights:** - Uses lodash `_.take` - Supports any array data type - Returns the taken items as JSON **Example:** - Array: `[1, 2, 3, 4]` - Count: `2` - Result: `[1, 2]`

Enter a JSON array

Number of items to take

API Documentation

Request Endpoint

POST /en/api/tools/take-items

Request Parameters

Parameter Name Type Required Description
array textarea Yes Enter a JSON array
count number No Number of items to take

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-take-items": {
      "name": "take-items",
      "description": "Take the first N items using lodash _.take",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=take-items",
      "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]