过滤文本中的单词
快速返回匹配模式或正则表达式的文本单词
API 文档
请求端点
POST /zh/api/tools/text-word-filter
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| textInput | textarea | 是 | - |
| filterType | select | 是 | - |
| pattern | text | 否 | 要匹配的模式(大多数过滤类型需要) |
| wordBoundary | checkbox | 否 | 仅匹配完整单词 |
| caseSensitive | checkbox | 否 | 过滤时匹配大小写 |
| outputFormat | select | 是 | - |
| separator | text | 否 | 单词间的自定义分隔符(覆盖输出格式) |
| removeDuplicates | checkbox | 否 | 从结果中删除重复单词 |
| sortAlphabetically | checkbox | 否 | 按字母顺序排序结果 |
| maxLength | text | 否 | 最大单词长度(用于长度过滤类型) |
| maxVowels | text | 否 | 最大元音数(用于元音过滤类型) |
| maxConsonants | text | 否 | 最大辅音数(用于辅音过滤类型) |
响应格式
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
文本:
文本
AI MCP 文档
将此工具添加到您的 MCP 服务器配置中:
{
"mcpServers": {
"elysiatools-text-word-filter": {
"name": "text-word-filter",
"description": "快速返回匹配模式或正则表达式的文本单词",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=text-word-filter",
"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]