WebMCP Registry

find_and_replace

verifiedv0.1

Finds and replaces in pasted text in the browser: plain, regex, or bulk pairs applied in order. Pass text (1–100000 chars). For plain or regex pass find and replace; for bulk pass pairs (1–50 objects with find and replace). Variant URLs are not a second machine Tool — pass mode explicitly. Do not use this to diff two strings (that is text_diff) 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": [
    "text"
  ],
  "properties": {
    "find": {
      "type": "string",
      "maxLength": 100000
    },
    "mode": {
      "enum": [
        "plain",
        "regex",
        "bulk"
      ],
      "type": "string",
      "default": "plain"
    },
    "text": {
      "type": "string",
      "maxLength": 100000,
      "minLength": 1
    },
    "pairs": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "find",
          "replace"
        ],
        "properties": {
          "find": {
            "type": "string",
            "maxLength": 100000
          },
          "replace": {
            "type": "string",
            "maxLength": 100000
          }
        },
        "additionalProperties": false
      },
      "maxItems": 50,
      "minItems": 1
    },
    "dotAll": {
      "type": "boolean",
      "default": false
    },
    "replace": {
      "type": "string",
      "maxLength": 100000
    },
    "multiline": {
      "type": "boolean",
      "default": false
    },
    "wholeWord": {
      "type": "boolean",
      "default": false
    },
    "caseSensitive": {
      "type": "boolean",
      "default": true
    }
  },
  "additionalProperties": false
}

Full Contract

{
  "name": "find_and_replace",
  "description": "Finds and replaces in pasted text in the browser: plain, regex, or bulk pairs applied in order. Pass text (1–100000 chars). For plain or regex pass find and replace; for bulk pass pairs (1–50 objects with find and replace). Variant URLs are not a second machine Tool — pass mode explicitly. Do not use this to diff two strings (that is text_diff) or to count words (that is word_counter).",
  "inputSchema": {
    "type": "object",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "required": [
      "text"
    ],
    "properties": {
      "find": {
        "type": "string",
        "maxLength": 100000
      },
      "mode": {
        "enum": [
          "plain",
          "regex",
          "bulk"
        ],
        "type": "string",
        "default": "plain"
      },
      "text": {
        "type": "string",
        "maxLength": 100000,
        "minLength": 1
      },
      "pairs": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "find",
            "replace"
          ],
          "properties": {
            "find": {
              "type": "string",
              "maxLength": 100000
            },
            "replace": {
              "type": "string",
              "maxLength": 100000
            }
          },
          "additionalProperties": false
        },
        "maxItems": 50,
        "minItems": 1
      },
      "dotAll": {
        "type": "boolean",
        "default": false
      },
      "replace": {
        "type": "string",
        "maxLength": 100000
      },
      "multiline": {
        "type": "boolean",
        "default": false
      },
      "wholeWord": {
        "type": "boolean",
        "default": false
      },
      "caseSensitive": {
        "type": "boolean",
        "default": true
      }
    },
    "additionalProperties": false
  }
}

GET /api/tool/simpletoolstack.com/find_and_replace