Search past Claude Code sessions
search_sessionsFind past conversations from any Claude Code project by searching keywords in titles, first messages, or project paths. Returns matching session IDs for quick retrieval.
Instructions
Search your past Claude Code conversations (across all projects) by keyword — matches session titles, first messages, and project paths. Use when the user refers to a past conversation by topic (e.g. 'the session where we set up the license system'). Returns matching sessions with their ids.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Keyword(s) to search for in titles / first messages / project paths. | |
| limit | No | Max results (default 20). |