explore_directory
List files and subdirectories at a given path to navigate a project tree level by level without indexing. Set depth and item limits to inspect directory contents.
Instructions
Lists files and subdirectories at the given path. Very fast, no indexing needed.
Use this to navigate the project tree level by level.
Args:
path: Directory path relative to project root (use "." for root).
depth: How many levels deep to show (1-3). Default 1.
max_items: Maximum items to return. Default 100.
Returns:
Tree-like listing of the directory contents.
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": "explore_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| depth | No | ||
| max_items | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |