List Claude Code sessions
list_sessionsList past Claude Code sessions with project, time span, turns, prompts, token usage, and tool calls. Use it to see which projects were active and compare session durations, without exposing message content.
Instructions
List past Claude Code sessions, newest first, with the project, time span, number of turns and prompts, per-model token usage and a tally of which tools were called. Use it to answer questions like which projects were worked on last week or which session was the long one. Returns counts only, never the text of any message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum sessions to return, newest first. | |
| since | No | Earliest day to include, YYYY-MM-DD, inclusive. | |
| until | No | Latest day to include, YYYY-MM-DD, inclusive. | |
| project | No | Only this project. Claude Code names it after the working directory with separators replaced by dashes, for example c--dev-myapp. |