过滤文本行
快速返回匹配模式或正则表达式的文本行
API 文档
请求端点
POST /zh/api/tools/text-line-filter
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| textInput | textarea | 是 | - |
| filterType | select | 是 | - |
| pattern | text | 否 | 要匹配的模式(某些过滤类型不使用) |
| matchType | select | 是 | - |
| caseSensitive | checkbox | 否 | 过滤时匹配大小写(不适用于所有过滤类型) |
| invertMatch | checkbox | 否 | 显示不符合条件的行 |
响应格式
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
文本:
文本
AI MCP 文档
将此工具添加到您的 MCP 服务器配置中:
{
"mcpServers": {
"elysiatools-text-line-filter": {
"name": "text-line-filter",
"description": "快速返回匹配模式或正则表达式的文本行",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=text-line-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]