directory_tree
Generate a JSON tree of a directory structure for compatibility with mcp-js-servers. Exclude files or folders by pattern.
Instructions
DEPRECATED: Use 'tree' instead (85% fewer tokens). Returns JSON tree structure for compatibility with mcp-js-servers. Parameters: path (required), excludePatterns (optional).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| excludePatterns | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree | Yes |