Count words and characters exactly
count_textExact counts for a text: characters (with and without spaces, emoji counted as one), words, sentences, paragraphs, lines, UTF-8 bytes, plus reading and speaking time. Language models see text as tokens and miscount — never estimate counts or check length limits yourself; call this tool. Works for any language, including Chinese, Japanese, Arabic and Turkish.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "count_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| locale | No | BCP 47 language tag such as "en", "tr" or "ja" for language-specific word rules. |