Skip to main content
Glama

Filesystem MCP Server

directory_tree

Create a plain text tree structure of any directory by specifying its path. This tool helps visualize directory hierarchies for easier navigation and management within secure filesystem operations.

Instructions

Generate a plain text tree structure of a directory.

Args: path (str): Directory path to generate tree for (absolute or relative to allowed directories)

Returns: str: Plain text representation of directory tree, or error message if failed

Input Schema

NameRequiredDescriptionDefault
pathYes

Input Schema (JSON Schema)

{ "properties": { "path": { "title": "Path", "type": "string" } }, "required": [ "path" ], "type": "object" }

Other Tools from Filesystem MCP Server

Related Tools

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/Preston-Harrison/fs-mcp-py'

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