estimate_tokens
Count Claude tokens for text input, accurately handling Korean/CJK characters. Works without an API key.
Instructions
Estimate the number of Claude tokens for a piece of text. Korean/CJK-aware (Korean uses ~1.3x the tokens of equivalent English). No API key needed.
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": "estimate_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The prompt or text to count tokens for |