ssh_dir_list_files_basic
List immediate filenames in a remote directory via SFTP without recursion or metadata. Use when you need only entry names, not sizes, permissions, or file types.
Instructions
List the immediate contents of a directory (via SFTP - not recursive, no metadata). For recursive listing with size/permissions/type/etc., or to filter by filename pattern, use ssh_dir_list_advanced or ssh_dir_search_glob instead.
Returns:
List of bare filenames (strings) directly inside path - not full paths,
not recursive, and no indication of which entries are files vs. directories
(use ssh_file_stat on an entry, or ssh_dir_list_advanced, if you need that).
Long-running calls: if this takes longer than the server's wait cap (default 50s), it
returns {"status": "in_progress", "handle_id": ...} instead of the result - the work keeps
running. Get the result by polling ssh_cmd_check_status(handle_id=...), which returns this
tool's normal response once finished. Do not call it again meanwhile. Only one such
operation runs at a time; another one started meanwhile fails with a 'busy' error.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory path to list |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |