search_file
Find regex patterns in a file and display matching lines with specified context lines before and after each match for precise file analysis.
Instructions
Search for regex patterns in a file and show matching lines with context.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
file_path | Yes | Absolute path to the file | |
lines_after | No | Number of lines to show after each match | |
lines_before | No | Number of lines to show before each match | |
regexp | Yes | Regular expression pattern to search for |