← All tools

Text / VERSION 1

Replace literal text

Apply one exact text replacement and return the number of changed occurrences.

Available via local MCP
RuntimeLocal DockerNetworkNoneRequest / result256 KiB eachProvider costNo API fees; local compute

Give it a task.

Use this MCP call after connecting Piwi. The output below is the result asserted by this tool's tests.

MCP tool call
{
  "name": "piwi_run_text_replace",
  "arguments": {
    "input": {
      "text": "Hello {{name}}",
      "search": "{{name}}",
      "replacement": "Piwi"
    }
  }
}
Expected output
{
  "text": "Hello Piwi",
  "replacements": 1
}

Inputs

  • text: source string
  • search: non-empty literal
  • replacement: string

Outputs

  • text
  • replacements