guard_budget
Reports this session's recorded tool-output size and top tools by characters, helping identify which tool results are inflating context so you can act before limits hit.
Instructions
Report this session's recorded tool-output size.
Use it when the context watermark is climbing or a turn is getting large,
to see which tools produced the bytes. It takes no parameters. It reads
events.jsonl for the current session (PC_SESSION_ID, or default) and
returns PC budget, the character total, an estimate of tokens (integer
division of characters by 4), the tool-result count, the top 5 tools by
characters, and a Nudge. Side effects: none. It does not create
.agent-guard/ and does not write events. A missing ledger is an empty budget.
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": "guard_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |