sftp_ls
List remote directory contents via SFTP. Specify path and optionally alias or host to connect.
Instructions
列出远程目录内容。使用 alias(推荐)或 host 指定目标服务器,单连接时可省略。
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": {
"path": "<path>"
},
"name": "sftp_ls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 远程目录路径(必需) | |
| alias | No | 服务器别名(推荐) | |
| host | No | 服务器地址(多个活跃连接时必须指定,单连接时可省略) | |
| port | No | SSH 端口(可选) | |
| username | No | 用户名(可选,配合 host 使用) | |
| targetConfirmationToken | No | 服务器切换确认 token |