Read one session in detail
session_statsRetrieve full stats for a single Claude Code session: duration, turns, prompts, subagent turns, damaged lines, and model token usage. Returns aggregated counts only, never message content.
Instructions
Full counts for a single session id: duration in seconds, turns, prompts, subagent turns, damaged lines, per-model token usage and the combined totals. Take the id from list_sessions. Returns counts only, never the text of any message.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>"
},
"name": "session_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The session id, which is the transcript filename without the .jsonl suffix. |