Zaehlen nach
Zaehlt Elemente nach abgeleitetem Schluessel mit lodash _.countBy
Zaehlt Elemente nach einem abgeleiteten Schluessel aus einer Sammlung.
**Highlights:**
- Verwendet lodash `_.countBy`
- Akzeptiert JSON-Arrays oder -Objekte
- Unterstuetzt identity oder Eigenschaft/Pfad
**Beispiel:**
- Sammlung: `[{"type":"a"},{"type":"b"},{"type":"a"}]`
- Iteratee: `type`
- Ergebnis: `{"a":2,"b":1}`
API-Dokumentation
Request-Endpunkt
POST /de/api/tools/count-by
Request-Parameter
| Parameter-Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| collection | textarea | Ja | JSON-Array oder -Objekt eingeben |
| iterateeType | select | Nein | - |
| iteratee | text | Nein | Eigenschaftsname oder Pfad fuer den Iteratee |
Antwortformat
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
Text:
Text
MCP-Dokumentation
Fügen Sie dieses Tool zu Ihrer MCP-Server-Konfiguration hinzu:
{
"mcpServers": {
"elysiatools-count-by": {
"name": "count-by",
"description": "Zaehlt Elemente nach abgeleitetem Schluessel mit lodash _.countBy",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=count-by",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
Sie können mehrere Tools verketten, z.B.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, maximal 20 Tools.
Wenn Sie auf Probleme stoßen, kontaktieren Sie uns bitte bei [email protected]