Search Context
rlm_search_contextSearch long contexts with regex to locate relevant sections, returning matches with surrounding context and line numbers for quick review.
Instructions
Search context using regex patterns.
Returns matches with surrounding context and line numbers. Use this to find relevant sections before reading in detail.
Examples:
Pattern: "error|warning" - Find all errors and warnings
Pattern: "function\s+\w+" - Find function definitions
Pattern: "TODO|FIXME" - Find code comments
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | No | Regex flags (default: gi for global case-insensitive) | gi |
| pattern | Yes | Regex pattern to search for | |
| context_id | No | Context identifier | main |
| session_id | No | Session ID | |
| max_results | No | Maximum results to return | |
| context_chars | No | Characters of surrounding context to include | |
| include_line_numbers | No | Include line numbers in results |