directory_tree
Generate a JSON-structured recursive tree view of files and directories from a specified path. Each entry includes 'name', 'type', and 'children' (for directories), aiding in visualizing project structures.
Instructions
Get a recursive tree view of files and directories in the specified path as a JSON structure. Each entry includes 'name', 'type' (file/directory), and 'children' for directories. Files have no children array, while directories always have a children array (which may be empty). The output is formatted with 2-space indentation for readability. Only works within the allowed directory. Useful for understanding project structure. Example: Enter '.' for current directory, or 'src' for a specific directory.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
path | Yes | Root directory to analyze |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from AiDD MCP Server
- create_directory
- delete_file
- directory_tree
- edit_file
- execute_code
- execute_shell_script
- get_allowed_directory
- get_file_info
- get_system_info
- git_add
- git_checkout
- git_commit
- git_create_branch
- git_diff
- git_diff_staged
- git_diff_unstaged
- git_init
- git_log
- git_reset
- git_show
- git_status
- list_directory
- move_file
- read_file
- read_multiple_files
- search_files
- tree_sitter_map
- update_allowed_directory
- write_file
Related Tools
- @shariqriazz/vertex-ai-mcp-server
- @owayo/mcp-src-tree
- @Braffolk/mcp-summarization-functions
- @andredezzy/deep-directory-tree-mcp
- @saiprashanths/code-analysis-mcp