sftp_list_directory
Lists files and directories on a remote host via SFTP, supporting optional glob pattern filtering.
Instructions
[SSH Operations] List files and directories on remote host via SFTP
Example usage:
{
"connectionId": "raspberry-pi",
"remotePath": "/home/pi",
"pattern": "*.txt"
}Security: Remote path must be absolute. Pattern supports glob wildcards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | No | Optional glob pattern to filter files (e.g., "*.txt") | |
| remotePath | Yes | Absolute path to remote directory | |
| connectionId | Yes | ID of the SSH connection to use |