estimate_context_size
Estimate token usage of Claude Code conversations with breakdown by message type, images, documents, and tool usage. Analyze individual files or view summary of all conversations.
Instructions
Estimate the context/token usage of a Claude Code conversation. Shows breakdown by message type, images, documents, and tool usage.
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": "estimate_context_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to a specific conversation file. If omitted, shows summary of all conversations sorted by context size. |