search_in_file
Locate code in remote files by searching for a pattern with grep, which returns matches with line numbers and context.
Instructions
Search for a text pattern in a remote file using grep. Returns matching lines with line numbers and surrounding context. Use this to locate code sections before editing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path | |
| server | Yes | Server name | |
| pattern | Yes | Grep regex pattern | |
| max_matches | No | Maximum number of matches | |
| context_lines | No | Lines of context around each match |