sftp_list
List the contents of a remote directory via SFTP, returning file and subdirectory names for the specified path.
Instructions
List files and directories in a remote directory via SFTP
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>",
"remotePath": "<remotePath>"
},
"name": "sftp_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID from ssh_connect | |
| remotePath | Yes | Path to the remote directory to list |