ssh-search-code
Search for text patterns in remote files via SSH without downloading full content, using token-efficient methods.
Instructions
Search for patterns in remote files without reading full content (token-efficient)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Remote server hostname or IP address | |
| user | Yes | SSH username | |
| path | Yes | Directory path to search on remote server | |
| pattern | Yes | Text pattern to search for | |
| filePattern | No | File pattern (e.g., "*.js", "*.py") | |
| ignoreCase | No | Case-insensitive search | |
| maxResults | No | Maximum number of results | |
| contextLines | No | Lines of context around matches | |
| privateKeyPath | No | Path to SSH private key (optional) | |
| port | No | SSH port (default: 22) |