search_capture
Search captured command output by keyword, semantic meaning, or hybrid ranking to find errors, logs, and context without rerunning commands.
Instructions
Searches the captured command output using BM25, Semantic embedding, or Hybrid (RRF) ranking. Semantic prefetch is on by default. Hybrid search waits at most the configured semantic wait budget for an active index job and may return BM25 results marked pending while that job continues. Semantic indexing is bounded by a per-capture input-byte budget and token-budgeted inference batches. Captures over the input budget use immediate BM25 fallback for semantic and hybrid searches; semantic mode waits for indexing unless the capture exceeds that budget.
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 |