list_directory
List immediate children of a directory with metadata. Optionally include hidden files and set a maximum result limit.
Instructions
List immediate children of a directory with metadata.
Args: path: Directory path to list include_hidden: Include hidden files and folders max_results: Maximum number of children to return
Returns: JSON string with directory entries or an error message
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": "list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_results | No | ||
| include_hidden | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |