context.inspect
Inspect current session context, token usage, and tool allowlist to verify loaded resources before proceeding.
Instructions
Read the current session pack and schema token-tax report for the authenticated principal. Returns the bytes→tokens heuristic, session tool names, savedTokens versus the full allowlist, and (unless includeEstate=false) the estate including oversized flags. Does not admit tools and does not execute other tools. Call this before context.need to see what is already loaded. Fail-closed: requires the same principal as the session.
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.inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | No | Optional session id; defaults to ses_<principalId> when omitted. | |
| includeEstate | No | When false, omit the full catalog estate and return only session tax. Default true. |