Context budget
context_budgetEstimate local token budgets for steering files and tools agents load every session, for a folder or one file and its imports.
Instructions
Approximate tokens (local estimate, no network) per steering file and per tool for what loads every session: Claude Code (CLAUDE.md plus @imports up to 4 hops, rules without paths, MEMORY.md first 200 lines, skill and subagent listing), Codex (AGENTS.md, 32 KiB cap), Gemini CLI (GEMINI.md plus imports), Cursor always-applied rules, Copilot repository instructions. With path, reports one file and its imports.
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": "context_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | One file; omit for the whole folder |