token_count
Estimate LLM token usage for text, a file, or a folder against a budget, including per-extension totals and largest files.
Instructions
Estimate LLM tokens of text, a file or folder vs a budget; per extension and largest files.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "token_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| path | No | file or folder | |
| text | No | ||
| budget | No | default 200000 | |
| extensions | No |