空白字符标准化
将连续的多个空格/制表符替换为单个空格;去除行首行尾空白
API 文档
请求端点
POST /zh/api/tools/whitespace-normalizer
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| textInput | textarea | 是 | - |
| normalizeSpaces | checkbox | 否 | Replace consecutive spaces with a single space |
| normalizeTabs | checkbox | 否 | Replace tab characters with spaces |
| trimLines | checkbox | 否 | Remove whitespace from the beginning and end of each line |
| preserveLineBreaks | checkbox | 否 | Keep original line breaks (when disabled, collapses multiple consecutive line breaks) |
响应格式
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
文本:
文本
AI MCP 文档
将此工具添加到您的 MCP 服务器配置中:
{
"mcpServers": {
"elysiatools-whitespace-normalizer": {
"name": "whitespace-normalizer",
"description": "将连续的多个空格/制表符替换为单个空格;去除行首行尾空白",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=whitespace-normalizer",
"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]