← All tools

Text / VERSION 1

Measure text

Count Unicode code points, whitespace-delimited words, lines, and UTF-8 bytes.

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_stats",
  "arguments": {
    "input": {
      "text": "Hello world!\nPiwi"
    }
  }
}
Expected output
{
  "characters": 17,
  "words": 3,
  "lines": 2,
  "bytes": 17
}

Inputs

  • text: string

Outputs

  • characters
  • words
  • lines
  • bytes