list_files
Lists files in a specified directory path with sorting by size, name, or modification date. Use this tool to organize and analyze file structures on Linux systems.
Instructions
List files under a specified path with various sorting options.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the directory to analyze | |
| order_by | No | Sort order - 'size', 'name', or 'modified' (default: 'name') | name |
| sort | No | Sort direction - 'ascending' or 'descending' (default: 'ascending') | ascending |
| top_n | No | Optional limit on number of files to return (1-1000, only used with size ordering) | |
| host | No | Remote host to connect to via SSH |