text_stats
Count characters, words, lines, sentences, and average word length from a text string to analyze its structure and size.
Instructions
Count characters, words, lines, and sentences in a text string. Returns a JSON object with counts for characters, words, lines, sentences, and average word length. Has no side effects. Free. Use when you need to analyse or report on the size and structure of a body of text. Do NOT use to count LLM tokens — use count_tokens instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to analyse. |