search_threads
Find relevant past AI coding sessions across tools using keyword or semantic search to recall prior work.
Instructions
Keyword search over the user's past AI coding sessions in every tool (Claude Code, Codex, Cursor, Gemini, Copilot, ...). One entry per thread with snippets; hybrid=true adds semantic matching.
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_threads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max threads (default 10, max 50). | |
| query | Yes | The search query. | |
| hybrid | No | Also match semantically (fuzzy or paraphrased queries; slower). | |
| sources | No | Source filter, e.g. claude_code, codex, cursor, gemini, copilot, in_app. Empty = all. | |
| include_subagents | No | Include Claude Code subagent transcripts (hidden by default). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||