sftp_ls
Lists files and directories in a remote SFTP path using an existing SSH session, so you can inspect remote directory contents before uploading, downloading, or managing files.
Instructions
List contents of a remote directory.
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": {
"sessionId": "<sessionId>",
"path": "<path>"
},
"name": "sftp_ls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Remote directory path | |
| sessionId | Yes | SSH session ID |