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)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"connection": "<connection>",
"pattern": "<pattern>"
},
"name": "ftp_grep"
}
}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) |