list_files
Explore a SiYuan workspace directory by listing its files and folders at a specified path. Read-only operation helps inspect structures like snapshot history.
Instructions
列出指定路径下的文件和文件夹(只读)。
常用于探索 '/data' 目录结构,例如查看 '/data/history' 下的快照。
注意事项: - 该工具仅读取目录,不会修改任何文件。 - 返回结果依赖思源工作空间内的实际路径权限。
Args: path: 路径,例如 '/data' 或 '/data/history'。
Returns: list: 包含文件和文件夹信息的字典列表。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |