Search Raw Archive
search_rawSearch the raw archive of every user/assistant turn to recall literal phrases from past chats when curated search returns no match. Returns untreated conversation content, so expect noise.
Instructions
Search the raw archive (every user/assistant turn captured by the Stop hook). Use this when search returns no curated match or you need to recall a literal phrase from past chats. Returns the untreated conversation content — expect noise. The raw archive is what guarantees 'what was said remains searchable' even when summarize/promote skip a turn.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Role filter: 'user' or 'assistant' (default: both) | |
| limit | No | Max results to return (default 20) | |
| query | Yes | Raw FTS query across every user/assistant turn captured by the raw archive. Unlike `search`, this bypasses all curation and returns literal chat content. Use when `search` comes back empty or you need to recall an exact phrase from past conversations. | |
| since | No | Only rows at or after this time (Unix epoch, ISO8601 datetime, or YYYY-MM-DD) | |
| until | No | Only rows at or before this time (Unix epoch, ISO8601 datetime, or YYYY-MM-DD; a date includes that full UTC day) | |
| branch | No | Git branch filter. Returns raw rows for this branch plus older rows without branch metadata. | |
| offset | No | Result offset for pagination | |
| project | No | Project name filter |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| role | No | ||
| count | Yes | ||
| limit | Yes | ||
| query | Yes | ||
| branch | No | ||
| offset | Yes | ||
| project | No | ||
| results | Yes | ||
| has_more | Yes | ||
| next_offset | No | ||
| since_epoch | No | ||
| source_type | Yes | ||
| until_epoch | No |