slimtoken.inspect_budget
Inspect request bodies to count system, tools, and messages, report token headroom against budget, and check if the pruner would drop leading messages. Read-only.
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.
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 |