{"ok":true,"result":{"slug":"whitespace-remover","name":"Whitespace Remover","summary":"Trim lines, collapse repeated spaces, expand tabs, join lines or remove all whitespace from text.","description":"Clean up messy text: trim lines, collapse repeated spaces, convert tabs to spaces, join lines by removing line breaks, or strip every whitespace character.","method":"POST","endpoint":"/api/v1/tools/whitespace-remover","plan":"free","mcpName":"whitespace_remover","input":{"type":"object","additionalProperties":false,"properties":{"input":{"type":"string","description":"The text.","maxLength":200000},"trimLines":{"type":"boolean","description":"Remove spaces and tabs from the start and end of every line.","default":true},"collapseSpaces":{"type":"boolean","description":"Replace runs of two or more spaces or tabs with a single space.","default":true},"removeLineBreaks":{"type":"boolean","description":"Join all lines into one, separated by single spaces.","default":false},"tabsToSpaces":{"type":"boolean","description":"Expand tabs to spaces, aligned to tab stops.","default":false},"tabSize":{"type":"integer","description":"Tab stop width used when expanding tabs.","default":4,"minimum":1,"maximum":16},"removeAll":{"type":"boolean","description":"Delete every whitespace character. Overrides the other options.","default":false}},"required":["input"]},"example":{"input":"  Too    many   spaces  \n\tand a tab  "},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/whitespace-remover","page":"https://pithlab.com/tools/whitespace-remover"}}