find_in_file
Search for specific patterns in a file using regular expressions, with an option to include surrounding lines for better context. Ideal for precise text analysis and navigation.
Instructions
Find occurrences of a pattern in a file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
contextLines | No | Number of context lines to include before and after matches (default: 2) | |
path | Yes | Path to the file to search in | |
pattern | Yes | Regular expression pattern to search for |