Download Remote File or Directory to Local
ssh_downloadDownload remote files or directories over SSH/SFTP to the local filesystem without passing file bytes through the LLM context; supports recursive transfers, overwrite control, and SHA-256 checks.
Instructions
Stream a remote file or directory directly to the local filesystem without passing file bytes through the LLM context. Uses SFTP with automatic pipe fallback, defends against path traversal/symlinks, defaults to overwrite=false, and verifies SHA-256 on single files. Permitted even on read-only targets.
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>",
"remote_path": "<remote_path>",
"local_path": "<local_path>"
},
"name": "ssh_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | SSH target as configured host alias, host, user@host, user@host:port, or [ipv6]:port. Never include remote paths in target. | |
| exclude | No | Optional directory names or glob patterns to exclude during recursive download | |
| overwrite | No | Must be true to overwrite existing local file(s) (default: false) | |
| recursive | No | Required when downloading a directory (default: false) | |
| local_path | Yes | Local destination file or directory path | |
| remote_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. | |
| verify_checksum | No | Verify SHA-256 checksum after single-file download (default: true) |