sftp_download_dir
Download a remote directory over SFTP by packaging it as a streaming tar archive and extracting it into a specified local path.
Instructions
基于纯 JS 流式 Tar 架构将远程目录打包并流式下载解压至宿主机本地
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": "sftp_download_dir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | 宿主机本地保存并解压的目标目录绝对路径 | |
| remotePath | Yes | 远程待打包下载的目录绝对路径 | |
| connectionId | No | 目标连接标识符,缺省时使用当前默认连接 | |
| useGitignore | No | 是否自动探测远程目录下的 .gitignore 规则并转译为 tar 排除参数,默认 true | |
| excludePatterns | No | 通配排除规则列表(例如 ['node_modules', '.git', '*.tmp']),匹配的文件与目录将被忽略不下载 |