normalize_whitespace
ActiveTool of IA-QA — 130+ QA & Dev Tools for AI Agents
Normalize whitespace: trim trailing spaces, collapse blank lines, normalize line endings (LF/CRLF), convert tabs to spaces. Useful for cleaning code, configs, and text before processing.
Parameters schema
{
"type": "object",
"required": [
"input"
],
"properties": {
"input": {
"type": "string",
"description": "Text to normalize"
},
"trim_file": {
"type": "boolean",
"description": "Trim leading/trailing blank lines (default: true)"
},
"trim_lines": {
"type": "boolean",
"description": "Trim trailing whitespace from each line (default: true)"
},
"line_ending": {
"type": "string",
"description": "\"lf\" (default), \"crlf\", or \"cr\""
},
"tab_to_spaces": {
"type": "number",
"description": "Convert tabs to N spaces (omit to keep tabs)"
},
"collapse_blanks": {
"type": "boolean",
"description": "Collapse 3+ consecutive blank lines to 2 (default: true)"
}
}
}No endpoints wrapped at confidence ≥ 0.50.
Parent server
IA-QA — 130+ QA & Dev Tools for AI Agents
https://github.com/jcjamet/ia-qa
1/7 registries