search_capture
Search captured command output using BM25, semantic, or hybrid retrieval to locate relevant snippets with surrounding context. Diagnose issues by querying keywords or natural language questions.
Instructions
Searches the captured command output using BM25, Semantic embedding, or Hybrid (RRF) ranking. When opt-in semantic prefetch is enabled, semantic and hybrid searches wait for the relevant background index job; failed jobs fall back to synchronous lazy indexing.
Args: query: Search keywords or natural language question (e.g. 'auth failure', 'ECONNREFUSED', 'why did the build fail?'). mode: Search mode - 'hybrid' (recommended, lexically weighted BM25 + Semantic), 'bm25' (keyword terms), or 'semantic' (vector concepts). capture_id: The capture ID to query (defaults to 'latest'). top_k: Number of matching snippets to return (default: 5). context_lines: Number of surrounding lines of context to include with each match (default: 3; must be non-negative).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | hybrid | |
| query | Yes | ||
| top_k | No | ||
| capture_id | No | latest | |
| context_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |