search_context
Search documents and retrieve results with adjacent context chunks to provide full context for accurate answers.
Instructions
Search with parent/sibling/child context expansion.
For each result, includes surrounding chunks (context_chunks before and after) so the LLM has full context.
Args: query: Natural language query. k: Number of primary results (max 20). context_chunks: Number of adjacent chunks to include (0-5). source_type: Optional filter: "code", "markdown", or "text".
Returns: List of results, each with a "context" field containing surrounding chunks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| query | Yes | ||
| source_type | No | ||
| context_chunks | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |