chunk_search
Search raw conversation chunks from past agent sessions using hybrid BM25 and semantic retrieval; optionally filter by session or workspace and return ranked matches.
Instructions
Search raw conversation chunks from agent session history using hybrid BM25 + semantic search.
Args: query: Natural language query session_id: Optional — restrict to a specific session (full ID) top_k: Number of chunks to return (default 20) include_graph: Expand top hits with chunks (from any session) that mention the same entity — a cross-session hop via shared file/commit/PR/etc. workspace: Optional — restrict to one project/workspace (substring match)
Returns: JSON list of chunks with chunk_text, session_id, chunk_index, and rrf_score
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No | ||
| workspace | No | ||
| session_id | No | ||
| include_graph | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |