search_history
Searches past Claude Code conversations and Markdown notes by terms, meaning, ticket, project, or date, returning session-grouped hits to answer questions about prior work.
Instructions
Search the user's whole work history: raw Claude Code conversations (one document per exchange) and, when a notes folder is configured, their Markdown notes (decisions, topics, session notes). Use it before answering about past work: a ticket ("PROJ-123"), "why did we do X", "what was decided about Y", a bug that came back. Exact terms and meaning are both matched; results are grouped by session. Then use read_exchange to read the raw conversation around a hit.
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": "search_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of sessions to return | |
| query | No | What to look for, in any wording. Optional when ticket is set. | |
| since | No | ISO date lower bound, e.g. 2026-09-01 | |
| until | No | ISO date upper bound | |
| ticket | No | Exact ticket id, e.g. PROJ-123 | |
| project | No | Repo or project substring, e.g. acme |