devanvil_llm_tokens
Estimate offline BPE token counts and multi-model API costs for prompts across English, Arabic, CJK, and code, then optionally compact redundant whitespace and comments.
Instructions
Estimate offline BPE tokens & multi-model API costs across English/Arabic/CJK/code, and optionally compact redundant whitespace/comments.
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": {
"input": "<input>"
},
"name": "devanvil_llm_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Prompt or context text. | |
| compact | No | Also run Smart Context Compactor. | |
| stripLineComments | No | Strip // and # comments when compacting. |