util_token_estimate
Estimate the token count of text for GPT-family models using a word/4 heuristic and for Claude-family models using a char/4 heuristic.
Instructions
Estimate token count for text. Uses word/4 heuristic (GPT-family) and char/4 (Claude-family).
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": {
"arguments": "<arguments>"
},
"name": "util_token_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arguments | Yes |