list_files
View a project's files and directories as a tree to understand its structure before reading or editing files.
Instructions
List the files and directories in the project as a tree. Use this to understand project structure before reading or editing files.
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_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How many levels deep to show (1–5, default 3) | |
| directory | No | Subdirectory to list, relative to the project root. Leave empty to list from the project root. |