Vertex AI MCP Server

by shariqriazz
Verified

get_directory_tree

Generate a JSON-structured tree view of files and directories within the workspace filesystem. Specify a root path to visualize project directory hierarchy, including details like 'name', 'type', and nested 'children'.

Instructions

Get a recursive tree view of files and directories within the workspace filesystem as a JSON structure. Each entry includes 'name', 'type' (file/directory), and 'children' (an array) for directories. Files have no 'children' array. The output is formatted JSON text. Useful for understanding the complete structure of a project directory.

Input Schema

NameRequiredDescriptionDefault
pathYesThe root path for the directory tree (relative to the workspace directory).

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "path": { "description": "The root path for the directory tree (relative to the workspace directory).", "type": "string" } }, "required": [ "path" ], "type": "object" }
ID: 4flmun3tjc