List Directory
list_directoryList directory contents with file type, size, and modification date. Supports recursive subdirectories and showing hidden files.
Instructions
List the contents of a directory with metadata (type, size, modified date).
Args:
path (string): Directory to list.
recursive (boolean, optional): List subdirectories recursively. Default: false.
show_hidden (boolean, optional): Include dotfiles/dotdirs. Default: false.
Returns: a listing with one entry per line: type, size, modified date, name.
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 | Directory to list | |
| recursive | No | List subdirectories recursively | |
| show_hidden | No | Include dotfiles/dotdirs |