tokencount_estimate
Estimate token counts for text across multiple LLM tokenizers, including GPT-4, Claude, and WordPiece, to help plan prompts and manage model context limits.
Instructions
Estimate token counts for text across different LLM tokenizers (GPT-4, Claude, WordPiece).
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": "tokencount_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to estimate tokens for. |