WebMCP Registry

text_diff

verifiedv0.1

Computes a sequential diff of two pasted strings in the browser (character, word, or line granularity). Pass left and right (each 0–100000 chars) plus optional granularity, ignoreCase, and whitespace. Variant URLs and the file-picker source are not a second machine Tool — pass left and right as strings. Do not use this to find-and-replace in one string (that is find_and_replace) or to count words (that is word_counter).

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

Input Schema

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "left",
    "right"
  ],
  "properties": {
    "left": {
      "type": "string",
      "maxLength": 100000
    },
    "mono": {
      "type": "boolean",
      "default": false
    },
    "right": {
      "type": "string",
      "maxLength": 100000
    },
    "source": {
      "enum": [
        "text",
        "file"
      ],
      "type": "string",
      "default": "text"
    },
    "ignoreCase": {
      "type": "boolean",
      "default": false
    },
    "whitespace": {
      "enum": [
        "sensitive",
        "ignore"
      ],
      "type": "string",
      "default": "sensitive"
    },
    "granularity": {
      "enum": [
        "char",
        "word",
        "line"
      ],
      "type": "string",
      "default": "word"
    }
  },
  "additionalProperties": false
}

Full Contract

{
  "name": "text_diff",
  "description": "Computes a sequential diff of two pasted strings in the browser (character, word, or line granularity). Pass left and right (each 0–100000 chars) plus optional granularity, ignoreCase, and whitespace. Variant URLs and the file-picker source are not a second machine Tool — pass left and right as strings. Do not use this to find-and-replace in one string (that is find_and_replace) or to count words (that is word_counter).",
  "inputSchema": {
    "type": "object",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "required": [
      "left",
      "right"
    ],
    "properties": {
      "left": {
        "type": "string",
        "maxLength": 100000
      },
      "mono": {
        "type": "boolean",
        "default": false
      },
      "right": {
        "type": "string",
        "maxLength": 100000
      },
      "source": {
        "enum": [
          "text",
          "file"
        ],
        "type": "string",
        "default": "text"
      },
      "ignoreCase": {
        "type": "boolean",
        "default": false
      },
      "whitespace": {
        "enum": [
          "sensitive",
          "ignore"
        ],
        "type": "string",
        "default": "sensitive"
      },
      "granularity": {
        "enum": [
          "char",
          "word",
          "line"
        ],
        "type": "string",
        "default": "word"
      }
    },
    "additionalProperties": false
  }
}

GET /api/tool/simpletoolstack.com/text_diff