删除所有空行
快速删除文本中的所有空行
API 文档
请求端点
POST /zh/api/tools/text-empty-lines-remover
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| textInput | textarea | 是 | - |
| removeType | select | 是 | - |
| preserveStructure | checkbox | 否 | 删除连续行时在段落间保持至少一个空行 |
| trimLines | checkbox | 否 | 删除所有行的前导/尾随空白字符 |
响应格式
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
文本:
文本
AI MCP 文档
将此工具添加到您的 MCP 服务器配置中:
{
"mcpServers": {
"elysiatools-text-empty-lines-remover": {
"name": "text-empty-lines-remover",
"description": "快速删除文本中的所有空行",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=text-empty-lines-remover",
"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]