grep_documents
Search across document content using regex or exact pattern matching to locate specific text. Returns line-level matches with surrounding context.
Instructions
Grep across document content using pattern matching (like ripgrep).
Use this to find exact text matches, regex patterns, or specific strings across all documents. Returns line-level matches with context.
Args: pattern: The search pattern (regex by default, or exact string) regex: Whether to use regex matching (default True) case_sensitive: Whether the search is case-sensitive (default False) folder_path: Optional folder path to scope the search top_k: Max number of chunk results to return (default 20)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| regex | No | ||
| case_sensitive | No | ||
| folder_path | No | ||
| top_k | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |