search_claude_sessions
Search Claude Code active transcripts, prompt history, or recent closed sessions by query. Use scope and limit to narrow results to past prompts or conversation content.
Instructions
Search across Claude Code active transcripts, prompt history (~/.claude/history.jsonl), or recent closed transcripts.
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_claude_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max hits to return (default 15). | |
| query | Yes | Case-insensitive search text. | |
| scope | No | Where to search (default 'active'). | active |