perseus_budget
Declare a token budget for the rendered context; enforce prompt size limits with warnings or strict failure, providing a per-directive breakdown when over budget.
Instructions
Declare a token budget for the rendered context (renders as empty text). Enforced by perseus prompt-size: an over-budget render warns — or fails with strict — with a per-directive byte/token breakdown (#606). Declarations are read from source text before conditionals are evaluated; top-level only — a @budget inside an @include'd file is not enforced (prompt-size warns) (#626). Read-only.
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": "perseus_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Value for max parameter | |
| strict | No | Value for strict parameter | |
| forensic | No | Value for forensic parameter |