Whitespace Clean

Text REST API MCP

Clean whitespace in text: trim, collapse runs of spaces, remove blank lines, normalize newlines.

This page documents the HTTP endpoint POST /api/tools/whitespace-clean/execute. See the MCP reference →

View as Markdown

Call it over REST

POST https://api.findutils.com/api/tools/whitespace-clean/execute · no API keys · 60 requests/min per IP

Execute — verified arguments

curl -X POST https://api.findutils.com/api/tools/whitespace-clean/execute \
  -H "Content-Type: application/json" \
  -d '{
    "text": "  hello   world  "
  }'

Parameter schema for this endpoint

curl https://api.findutils.com/api/tools/whitespace-clean

Interactive docs · OpenAPI 3.1 spec · All REST tools

Input schema

Argument Type Required Description
text string yes Text to clean.
trim boolean no Trim leading/trailing whitespace. Defaults to true. Default: true.
collapse_spaces boolean no Collapse runs of non-newline whitespace to single space. Defaults to true. Default: true.
remove_blank_lines boolean no Drop lines that are only whitespace. Defaults to false. Default: false.
normalize_newlines boolean no Convert CRLF/CR to LF. Defaults to true. Default: true.

Example arguments (verified)

{
  "text": "  hello   world  "
}

Also an MCP tool

Claude, Cursor, and any MCP client can call this tool as findutils:whitespace_clean after one connect command.

Connect once

claude mcp add findutils --transport http https://mcp.findutils.com/
Open the MCP reference for Whitespace Clean →

More Text tools