search_with_regex
Search long documents for a regex pattern to extract matching snippets. Provide a file path or text content to find exactly what you need without loading the entire document.
Instructions
Searches a document for a regex pattern and returns matching snippets.
Exactly one of context_path or context_text must be provided. Do NOT provide both.
Args:
context_path (str, optional): The path to the context file.
context_text (str, optional): The text content to search.
regex_pattern (str, optional): The regex pattern to search for.
case_sensitive (bool, default=True): Whether to match case-sensitively.
Returns:
str: A string containing the matching snippets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context_path | No | ||
| context_text | No | ||
| regex_pattern | No | ||
| case_sensitive | No |