List Directory
fs_list_directoryLists folders and files in a specified directory with sizes, types, and permissions. Use it to inspect directory contents recursively with depth and entry limits.
Instructions
读取并列出指定目录中的文件夹与文件列表,包含大小、类型和权限信息。
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": "fs_list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 目标目录路径(支持绝对路径、相对路径或 ~) | |
| maxDepth | No | 递归最大深度 | |
| recursive | No | 是否递归列出子目录 | |
| maxEntries | No | 最大返回条目数 | |
| includeHidden | No | 是否包含以 . 开头的隐藏文件 |