ftp_grep
Search remote files on FTP/SFTP for text or regex patterns, downloading each file to find matches. Filter by path, file pattern, depth, and case sensitivity.
Instructions
Search for text content within remote files (downloads and searches each file)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Starting directory (defaults to cwd) | |
| pattern | Yes | Text or regex pattern to search for within files | |
| maxDepth | No | Maximum search depth (default: 5) | |
| maxFiles | No | Maximum files to search (default: 50) | |
| connection | Yes | Connection name | |
| filePattern | No | Glob pattern to filter which files to search (e.g., '*.txt') | |
| caseSensitive | No | Case-sensitive search (default: false) |