slimtoken.inspect_budget
Counts tokens in system, tools, and messages, reports headroom against a budget, and indicates if leading messages would be pruned. Read-only inspection without modifying the request body.
Instructions
Read-only token-budget inspection: counts system/tools/messages, reports headroom against a token_budget, and whether the pair-safe pruner would drop any leading messages. Does not modify the body.
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": {
"messages": "<messages>"
},
"name": "slimtoken.inspect_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tools | No | ||
| format | No | request format of the body (normalized to canonical before inspection) | anthropic |
| system | No | ||
| messages | Yes | ||
| keep_last | No | ||
| token_budget | No |