List Directory
列出目录内容。
Parameters
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| path | string | 是 | 目录路径 |
Returns
- •文件名和类型
- •文件大小
- •修改时间
Examples
列出当前目录:
json
{"path": "."}
列出指定目录:
json
{"path": "/home/user/documents"}
Related Skills
- •
read-file: 读取文件内容 - •
write-file: 写入文件
列出目录内容,包括文件与子目录。当你需要探索目录结构、查找特定文件,或确认某个文件夹中究竟有哪些内容时,此功能将助你一臂之力。
--- frontmattername: list-directory description: List directory contents including files and subdirectories. When you need to explore directory structure, find specific files, or check what exists in a folder. system: true handler: filesystem tool-name: list_directory category: File System
列出目录内容。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| path | string | 是 | 目录路径 |
列出当前目录:
{"path": "."}
列出指定目录:
{"path": "/home/user/documents"}
read-file: 读取文件内容write-file: 写入文件