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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "ubuntu_list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| detailed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |