数组元素计数器
统计数组中特定元素的出现次数,支持多种计数模式和统计分析
API 文档
请求端点
POST /zh/api/tools/array-element-counter
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| arrayInput | textarea | 是 | - |
| countMode | select | 是 | - |
| targetElements | text | 否 | - |
| delimiter | select | 是 | - |
| customDelimiter | text | 否 | - |
| sortBy | select | 是 | - |
| outputFormat | select | 是 | - |
| caseSensitive | checkbox | 否 | - |
| includeStats | checkbox | 否 | - |
响应格式
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
文本:
文本
AI MCP 文档
将此工具添加到您的 MCP 服务器配置中:
{
"mcpServers": {
"elysiatools-array-element-counter": {
"name": "array-element-counter",
"description": "统计数组中特定元素的出现次数,支持多种计数模式和统计分析",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=array-element-counter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
你可以串联多个工具,比如:`https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`,最多20个。
如果遇见问题,请联系我们:[email protected]