WebMCP Registry

text_cleaner

verifiedv0.1

Cleans and normalizes pasted text in one pass: whitespace, line breaks, duplicate lines, optional HTML stripping and quote straightening. Operations are combinable via input flags (lineBreaks, collapseSpaces, stripHtmlTags, and the other configSchema fields) — they are not separate machine Tools. Variant URLs such as remove-line-breaks or remove-duplicate-lines are not extra machine names. Use this when the text should keep its meaning. Do not use it to rewrite content, to make a URL slug (that is slug_generator), or to change letter case only (that is case_converter).

Updated 9/3/2026 · Created 9/3/2026

Input Schema

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 100000,
      "minLength": 1
    },
    "sortLines": {
      "type": "boolean",
      "default": false
    },
    "trimLines": {
      "type": "boolean",
      "default": true
    },
    "lineBreaks": {
      "enum": [
        "keep",
        "remove-single",
        "remove-all"
      ],
      "type": "string",
      "default": "keep"
    },
    "stripHtmlTags": {
      "type": "boolean",
      "default": false
    },
    "collapseSpaces": {
      "type": "boolean",
      "default": true
    },
    "dedupeIgnoreCase": {
      "type": "boolean",
      "default": false
    },
    "removeBlankLines": {
      "type": "boolean",
      "default": false
    },
    "straightenQuotes": {
      "type": "boolean",
      "default": false
    },
    "lineBreakReplacement": {
      "enum": [
        "space",
        "none"
      ],
      "type": "string",
      "default": "space"
    },
    "removeDuplicateLines": {
      "type": "boolean",
      "default": false
    },
    "dedupeConsecutiveOnly": {
      "type": "boolean",
      "default": false
    },
    "normalizeUnicodeSpaces": {
      "type": "boolean",
      "default": true
    }
  },
  "additionalProperties": false
}

Full Contract

{
  "name": "text_cleaner",
  "description": "Cleans and normalizes pasted text in one pass: whitespace, line breaks, duplicate lines, optional HTML stripping and quote straightening. Operations are combinable via input flags (lineBreaks, collapseSpaces, stripHtmlTags, and the other configSchema fields) — they are not separate machine Tools. Variant URLs such as remove-line-breaks or remove-duplicate-lines are not extra machine names. Use this when the text should keep its meaning. Do not use it to rewrite content, to make a URL slug (that is slug_generator), or to change letter case only (that is case_converter).",
  "inputSchema": {
    "type": "object",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "required": [
      "text"
    ],
    "properties": {
      "text": {
        "type": "string",
        "maxLength": 100000,
        "minLength": 1
      },
      "sortLines": {
        "type": "boolean",
        "default": false
      },
      "trimLines": {
        "type": "boolean",
        "default": true
      },
      "lineBreaks": {
        "enum": [
          "keep",
          "remove-single",
          "remove-all"
        ],
        "type": "string",
        "default": "keep"
      },
      "stripHtmlTags": {
        "type": "boolean",
        "default": false
      },
      "collapseSpaces": {
        "type": "boolean",
        "default": true
      },
      "dedupeIgnoreCase": {
        "type": "boolean",
        "default": false
      },
      "removeBlankLines": {
        "type": "boolean",
        "default": false
      },
      "straightenQuotes": {
        "type": "boolean",
        "default": false
      },
      "lineBreakReplacement": {
        "enum": [
          "space",
          "none"
        ],
        "type": "string",
        "default": "space"
      },
      "removeDuplicateLines": {
        "type": "boolean",
        "default": false
      },
      "dedupeConsecutiveOnly": {
        "type": "boolean",
        "default": false
      },
      "normalizeUnicodeSpaces": {
        "type": "boolean",
        "default": true
      }
    },
    "additionalProperties": false
  }
}

GET /api/tool/simpletoolstack.com/text_cleaner