Skip to main content
Glama

get_directory_tree

Generate a visual directory tree structure from any project path to understand file organization and navigate complex codebases efficiently.

Instructions

Gets the directory tree structure starting from the specified path within the project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dirpathNoThe path to the directory to get the tree from (can be absolute or relative to project root).
max_depthNoThe maximum depth to traverse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Abhi-vish/code-buddy'

If you have feedback or need assistance with the MCP directory API, please join our Discord server