list_directory
List files and subdirectories within permitted paths, returning names, types, sizes, and modification dates to inspect server configurations.
Instructions
Inspect file and directory structures within authorized administrative paths.
Permitted directories: /etc/nginx/, /etc/mysql/, /etc/postgresql/, /etc/docker/, /etc/caddy/, /var/www/
Args: dir_path: Path to the directory to inspect. max_depth: Exploration depth (1 to 3, default: 1).
Returns: JSON string with item list (names, types, sizes, modification dates).
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": {
"dir_path": "<dir_path>"
},
"name": "list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir_path | Yes | ||
| max_depth | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |