ubuntu_list_directory
List directory entries in policy-allowed paths, returning compact counts and previews for agent planning or detailed metadata for full inspection.
Instructions
List directory entries for a policy-allowed path.
By default this returns a compact summary suitable for agent planning. In detailed mode it returns full per-item metadata.
Args: path: Directory path to inspect. detailed: If True, returns full item list; if False, returns summarized counts and preview subset.
Returns:
JSON string in unified {ok, data|error} contract.
Detailed entries are marked with untrusted_content=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| detailed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |