list_remote_directory
List files and directories in a remote server directory over SSH, returning each item's name, type, size, and modification time.
Instructions
List contents of a directory on a remote server.
Parameters:
connection: Name of the connection (from list_connections)
path: Absolute path to the directory on the remote server
Example usage: list_remote_directory("web1", "/var/log")
Returns a list of files/directories with name, type, size, and modification time.
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": {
"connection": "<connection>",
"path": "<path>"
},
"name": "list_remote_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the directory on the remote server | |
| connection | Yes | Name of the SSH connection to use |