perseus_tree
Displays a directory tree with configurable depth for understanding project structure at a glance.
Instructions
Display a directory tree with configurable depth. Use to understand project structure at a glance. For flat file listings with metadata, use perseus_list instead. Read-only; depth limits control output size.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "perseus_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory path for tree display (default: workspace root) | |
| depth | No | Value for depth parameter |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Root directory path | |
| tree | No | Directory tree as formatted text |