分类

空行清理

移除文本中所有没有任何内容的空行

当模式为"保留"时,保留此数量的连续空行

删除文本开头的空行

删除文本结尾的空行

API 文档

请求端点

POST /zh/api/tools/empty-line-remover

请求参数

参数名 类型 必填 描述
textInput textarea -
removeMode select -
preserveCount number 当模式为"保留"时,保留此数量的连续空行
trimFirst checkbox 删除文本开头的空行
trimLast checkbox 删除文本结尾的空行

响应格式

{
  "result": "Processed text content",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}
文本: 文本

AI MCP 文档

将此工具添加到您的 MCP 服务器配置中:

{
  "mcpServers": {
    "elysiatools-empty-line-remover": {
      "name": "empty-line-remover",
      "description": "移除文本中所有没有任何内容的空行",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=empty-line-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]