ssh_list_remote_dir
List files and directories on a remote host via SFTP by providing a session ID and optional path. Returns name, size, timestamp, and directory flag.
Instructions
List files and directories at a path on the remote host via SFTP.
Args: session_id: The session ID returned by ssh_connect. remote_path: Directory path on the remote host (default: current directory).
Returns: List of dicts with name, size, modified timestamp, and is_dir flag.
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": {
"session_id": "<session_id>"
},
"name": "ssh_list_remote_dir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| remote_path | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |