search_sessions
Search past AI-agent sessions across projects to recover earlier questions, decisions, commands, and results before redoing work or when referencing prior work.
Instructions
Search the user's past AI-agent sessions (Codex, Claude Code, Cursor, Cowork): what was asked, decided, run and reported, across projects. Use it before redoing work or when the user refers to earlier work ("what did we decide about X", "which commit fixed Y", "the numbers from the last run"). Each item is an original record with episode_id; use open_record for context.
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 |
|---|---|---|---|
| k | No | ||
| host | No | ||
| query | Yes | ||
| roles | No | ||
| since | No | ISO date | |
| until | No | ISO date | |
| project | No | substring of the project folder or Cowork label, e.g. my-app, precision-memory, cowork:notes | |
| quality | No | leave unset: the server default waits for the reranker (best precision) | |
| budget_tokens | No |