{"ok":true,"result":{"slug":"remove-empty-lines","name":"Remove Empty Lines","summary":"Remove blank lines from text, or collapse runs of blank lines into one.","description":"Delete blank and whitespace-only lines from text, or collapse runs of empty lines into one. Keeps your line endings and works instantly in the browser.","method":"POST","endpoint":"/api/v1/tools/remove-empty-lines","plan":"free","mcpName":"remove_empty_lines","input":{"type":"object","additionalProperties":false,"properties":{"input":{"type":"string","description":"The text.","maxLength":200000},"whitespaceOnly":{"type":"boolean","description":"Count lines containing only spaces or tabs as empty.","default":true},"collapse":{"type":"boolean","description":"Keep a single blank line where several were (and drop blank lines at the start and end) instead of removing them all.","default":false}},"required":["input"]},"example":{"input":"First line\n\n\nSecond line\n   \nThird line"},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/remove-empty-lines","page":"https://pithlab.com/tools/remove-empty-lines"}}