Categories

Take Right Items

Take the last N items using lodash _.takeRight

Take a specified number of items from the end of a JSON array. **Highlights:** - Uses lodash `_.takeRight` - Keeps the original order of the tail - Returns the taken items as JSON **Example:** - Array: `[1, 2, 3, 4]` - Count: `2` - Result: `[3, 4]`

Enter a JSON array

Number of items to take from the end

API Documentation

Request Endpoint

POST /en/api/tools/take-right-items

Request Parameters

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

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