ssh_sftp_list_dir
List files and directories on a remote server via SFTP using an established SSH connection. Provide the connection ID and remote path to retrieve directory contents.
Instructions
List files and directories on the remote server using 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": {
"connectionId": "<connectionId>",
"path": "<path>"
},
"name": "ssh_sftp_list_dir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connectionId | Yes | The session ID returned by ssh_connect | |
| path | Yes | Remote path to list (e.g., '.', '/var/log') |