list_sessions
List recent Claude Code sessions by newest first. Use this to discover session IDs for browsing or reading specific sessions.
Instructions
List the most-recent Claude Code sessions (conversations) in the index, newest first. This is the browse/discovery entry point: use it to find out what sessions exist and get their session_id values before calling 'session' (read one in full) or 'recent' (latest messages). Prefer 'search' when you are looking for specific content rather than browsing. Returns one row per session — session_id, project, message count, and last-activity time. Read-only; never modifies the index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | only list sessions in this project slug | |
| limit | No | max sessions to return, newest first (default 50) |