find_in_file
Locate and extract specific patterns in a file using regular expressions, with optional context lines for better readability within the Edit-MCP server environment.
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 |