ssh_list_dir
List files and directories on a remote Linux server via SSH, with optional glob filtering and recursive listing to prevent output overload.
Instructions
List directory contents on the remote server.
Args: path: Directory path to list. Defaults to current working directory. pattern: Glob pattern to filter entries (e.g., "*.py", "Makefile"). recursive: If true, list recursively. max_entries: Maximum entries to return (prevents overwhelming output). host: SSH host alias from config. Uses default if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| pattern | No | * | |
| recursive | No | ||
| max_entries | No | ||
| host | No |