get_directory_tree
Generate a formatted ASCII tree of a directory up to a specified depth, helping visualize file and folder structure for inspection and analysis.
Instructions
Generate a formatted ASCII tree structure of a directory up to max_depth.
Args:
directory: Directory to visualize.
max_depth: Maximum recursion depth (default 3).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_directory_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | No | . | |
| max_depth | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |