file_download
Download a remote file to an absolute local path over SFTP, report byte counts, and prevent overwriting an existing destination unless overwrite is true.
Instructions
Download a remote file to an absolute local path over SFTP and report byte counts; missing remote files fail with REMOTE_ERROR. Refuses an existing local destination unless overwrite:true.
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": {
"remotePath": "<remotePath>",
"localPath": "<localPath>"
},
"name": "file_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| localPath | Yes | Absolute local destination path | |
| overwrite | No | Replace the local file if it already exists (default false) | |
| remotePath | Yes | Remote source path |