list_directory
Lists contents of any directory in WSL filesystem, showing file names, types, permissions, sizes, and modification times.
Instructions
List the contents of a directory in the WSL filesystem. Returns each entry with its name, type (file, directory, symlink), Unix permissions, size in bytes, and last-modified timestamp. Equivalent to running ls -la in the target directory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the directory to list within the WSL filesystem, e.g. '/home/user' or '/var/log'. | |
| distro | No | Name of the WSL distribution. Defaults to the system default distribution. |