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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| remote_path | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |