file_tree
List project files and directories with sizes, modification times, and type icons while automatically excluding node_modules, .git, and build artifacts.
Instructions
List files and directories with sizes, modification times, and type icons. Automatically excludes node_modules, .git, build artifacts.
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": "file_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | File pattern filter, e.g. "*.ts", "*.py" | |
| type | No | Show only files, only directories, or all | |
| directory | No | Directory to list (default: project root) | |
| max_depth | No | Maximum directory depth (default: 3) | |
| show_details | No | Show sizes and dates (default: true) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree | Yes | ||
| files | No | ||
| fileCount | No |