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)
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": {
"host": "<host>",
"user": "<user>",
"path": "<path>",
"pattern": "<pattern>"
},
"name": "ssh-search-code"
}
}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) |