{"ok":true,"tool":"Trim Whitespace","operation":"trim-whitespace","description":"Normalize, trim, or remove whitespace from text.","method":"POST","endpoint":"/api/trim-whitespace","webUrl":"https://toolhub-5eo.pages.dev/tools/trim-whitespace","parameters":{"type":"object","properties":{"text":{"type":"string","description":"The input text"},"mode":{"type":"string","enum":["normalize","trim","remove"],"description":"Cleanup mode (default normalize)"}},"required":["text"]},"response":{"type":"object","properties":{"result":{"type":"string"},"originalLength":{"type":"number"},"resultLength":{"type":"number"}}},"example":{"request":{"text":"  hello   world  ","mode":"normalize"},"response_shape":{"type":"object","properties":{"result":{"type":"string"},"originalLength":{"type":"number"},"resultLength":{"type":"number"}}}},"howToCall":"POST a JSON body to https://toolhub-5eo.pages.dev/api/trim-whitespace. Returns {\"ok\":true,\"result\":{...}} on success or {\"ok\":false,\"error\":\"...\"} on failure. No auth, CORS-enabled.","parametersSummary":"  text (string, required) — The input text\n  mode (string, optional, one of: normalize|trim|remove) — Cleanup mode (default normalize)","curlExample":"curl -X POST https://toolhub-5eo.pages.dev/api/trim-whitespace -H \"Content-Type: application/json\" -d '{\"text\":\"  hello   world  \",\"mode\":\"normalize\"}'"}