readDirectory
List files and subdirectories in a specified directory. Helps quickly understand project structure by scanning a path, excluding large folders like node_modules.
Instructions
列出指定目录下的所有文件和文件夹名称(已自动忽略 node_modules 等大文件夹)。当你不确定项目结构、找不到某个文件在哪里时,必须先调用此工具,辅助 AI 了解项目结构。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | 要扫描的目录路径,支持相对路径,绝对路径,(默认当前项目根) | . |