list_directory
Retrieve and display directory contents with type annotations ([DIR] or [FILE]). Specify the path to list files and folders within allowed directories, sorted alphabetically.
Instructions
List the contents of a directory with type annotations.
Args: path (str): Directory path to list (absolute or relative to allowed directories)
Returns: str: Newline-separated list of entries with '[DIR]' or '[FILE]' prefixes, or error message if failed
Note:
Input Schema
Name | Required | Description | Default |
---|---|---|---|
path | Yes |