Word count
word_countCount words, characters, and lines in a text input to measure content length and line structure.
Instructions
Count words, characters, and lines in text. Words are runs of non-whitespace. Characters are Unicode code points. Lines are separated by newlines, and a trailing newline does not add an extra line.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "word_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to measure. |