数组操作工具
对两个数组执行集合操作(交集、并集、差集等)
API 文档
请求端点
POST /zh/api/tools/array-operations
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| array1 | textarea | 是 | - |
| array2 | textarea | 是 | - |
| operation | select | 是 | - |
| caseSensitive | checkbox | 否 | - |
| trimWhitespace | checkbox | 否 | - |
| customSeparator | text | 否 | - |
响应格式
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
文本:
文本
AI MCP 文档
将此工具添加到您的 MCP 服务器配置中:
{
"mcpServers": {
"elysiatools-array-operations": {
"name": "array-operations",
"description": "对两个数组执行集合操作(交集、并集、差集等)",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=array-operations",
"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]