sftp_list
Lists files and folders in a remote SFTP directory, with optional hidden-file inclusion, to inspect server contents without manual navigation.
Instructions
List the contents of 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": {
"connectionId": "<connectionId>",
"remotePath": "<remotePath>"
},
"name": "sftp_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remotePath | Yes | Remote directory path (use "." for current directory) | |
| showHidden | No | Include hidden files (starting with ".") (default false) | |
| connectionId | Yes | Connection ID from ssh_connect |