search_sessions
Search earlier Claude Code and Codex sessions to find what was said before. Returns ranked snippets within a token budget, so you can recover past context without loading full transcripts.
Instructions
Search what was said in earlier captured Claude Code and Codex sessions of this project. Returns compact, ranked snippets within a token budget; use get_session_excerpt for context. Captured sessions are history, not approved decisions.
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": {
"query": "<query>"
},
"name": "search_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Words to look for in earlier Claude Code / Codex sessions (English or Armenian; quotes for phrases). | |
| budget_tokens | No | Approximate token budget for the results (default 1500, max 6000). |