Open Kioku Regex Search
regex_searchSearch indexed source code with a regular expression pattern to find exact line-level matches, including file path, line number, and matching content.
Instructions
Search indexed source code using a regular expression pattern, returning exact line-level matches with file path, line number, and matching line content for each hit. Use for exact regular-expression pattern matching against indexed source code lines. Best used after lexical or semantic search has narrowed the search area. Do NOT use for ranked keyword search (use search_code), for natural-language concept search (use semantic_search or hybrid_search), or for syntax-structure-aware queries (use structural_search). This is read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of matching lines to return. Defaults to 20, capped at 100. | |
| offset | No | Number of matching lines to skip before returning results. Defaults to 0. | |
| pattern | Yes | A valid regular expression pattern (Rust regex syntax) to match against indexed source code lines. Example: 'fn\s+main' to find main function declarations. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | Wrapped non-object output, used for Markdown, TOON, or scalar responses. |