list-directory
View remote directory contents over SFTP, showing file names, types, sizes, and modification times. Use it to quickly inspect what's stored on a server without manual SSH.
Instructions
List entries of a remote directory (name, type, size, mtime) 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": {
"remotePath": "<remotePath>"
},
"name": "list-directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remotePath | Yes | Absolute POSIX directory path on the remote server, e.g. /var/log | |
| connectionName | No | SSH connection name (optional, default is 'default') |