Drop Items
Drop first N items from array using lodash _.drop
Remove a specified number of elements from the beginning of an array.
**Examples:**
- Input: `[1, 2, 3, 4, 5]`, Drop: `2` → `[3, 4, 5]`
- Input: `["a", "b", "c", "d"]`, Drop: `1` → `["b", "c", "d"]`
- Input: `[10, 20, 30, 40, 50]`, Drop: `3` → `[40, 50]`
- Input: `[1, 2, 3]`, Drop: `0` → `[1, 2, 3]` (no items dropped)
- Input: `[1, 2, 3]`, Drop: `10` → `[]` (drops all items)
**Use Cases:**
- Skip header rows in data arrays
- Remove initial configuration items
- Process arrays starting from a specific position
- Clean up prefix elements
API Documentation
Request Endpoint
POST /en/api/tools/drop-items
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| array | textarea | Yes | Enter a valid JSON array |
| n | number | No | How many items to remove from the beginning (0-10000) |
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-drop-items": {
"name": "drop-items",
"description": "Drop first N items from array using lodash _.drop",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=drop-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]