ドキュメント

ctx_tree - Tool Reference

Directory listing with file counts.

ctx_tree Core Tools

Directory listing with file counts.

Parameters
3
Required
0
Token Impact
Compact tree output vs listing all files individually.

When to Use

Exploring project structure. Great at session start or when navigating unfamiliar codebases.

When Not to Use

When you need file contents (use ctx_read) or when you know the exact path already.

Parameters

Parameter Type Required Description
depth integer No Max depth (default: 3)
path string No Directory path (default: .)
show_hidden boolean No Show hidden files

CLI Equivalent

This tool is also available via the CLI:

lean-ctx tree [path] [--depth N]

Related Tools

Schema MD5: 08acd62450b0984d0931f74985fd5514 ← Back to all tools