Find Remote Files
ssh_findFind files and directories matching a glob pattern under a remote directory over SSH, automatically excluding .git and node_modules to reduce noise in search results.
Instructions
Find files/directories matching a glob pattern under a remote directory. Automatically excludes .git and node_modules; prefers ripgrep (rg) on Unix when installed.
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": {
"target": "<target>",
"path": "<path>",
"pattern": "<pattern>"
},
"name": "ssh_find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Explicit remote absolute path (e.g. /etc/nginx/nginx.conf or C:\Services\app.json) or home-relative ~/... path. Bare relative paths are rejected. | |
| target | Yes | SSH target as configured host alias, host, user@host, user@host:port, or [ipv6]:port. Never include remote paths in target. | |
| pattern | Yes | Filename or relative path glob pattern (e.g. '*.conf', '**/*.ts') | |
| max_results | No | Maximum results to return (default: 200) |