list_dir
List files and directories in a repository to orient yourself in unfamiliar areas; automatically skips build outputs, node_modules, and .git.
Instructions
List files and directories. Use for orientation in an unfamiliar area of the repo. Build outputs, node_modules and .git are skipped automatically. Prefer search_code when you are looking for something specific.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_dir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory relative to the workspace root. Default: "." | |
| depth | No | Levels to descend, 1-6. Default 1. | |
| limit | No | Max entries. Default 500. | |
| workspace | No | Workspace alias. Defaults to the active workspace. | |
| include_hidden | No | Include dot-files. Default false. |