find_code_examples
Search indexed documentation for code examples by matching block content with BM25. Optionally filter by language to locate relevant code snippets.
Instructions
Search fenced code blocks across the indexed docs by BM25 over the block content. Returns one row per block with {block_id, section_id, doc_path, title, lang, byte_start, byte_end, snippet, _score}. Optional lang filter (e.g. 'python', 'bash'). Use after index_local; requires INDEX_VERSION>=3.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | jdocmunch repo identifier | |
| query | Yes | Free-form code-content query | |
| lang | No | Optional case-insensitive language filter | |
| max_results | No |