ssh_download
Download a single remote file to a local path over SFTP, overwriting existing local files and respecting transfer-folder restrictions on readonly servers.
Instructions
Downloads one remote file from the named server to a local destination path over SFTP, overwriting any existing local file at that path. Affects only the local filesystem and is read-only on the remote side, so it stays allowed even on servers in readonly or restricted security mode, where the local path must be inside the transfer folder (~/.ssh-manager/transfers, or the transferRoot set on the server): a relative path is read from it, and anything outside it, or reached through a link, is refused. On other servers the local path is unrestricted unless a transferRoot is set. Reads the remote file using the configured SSH user, which must have permission to read it. Handles single files only; use ssh_sync for directories.
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": {
"server": "<server>",
"remotePath": "<remotePath>",
"localPath": "<localPath>"
},
"name": "ssh_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | Yes | Server name | |
| localPath | Yes | Local destination path | |
| remotePath | Yes | Remote file path |