Get project tree
get_treeRetrieve an effective project tree after applying gitignore, built-in, profile, and optional glob filters. Format it as Markdown, JSON, XML, or text for a clear codebase overview.
Instructions
Return the effective project tree after built-in, gitignore, profile, and optional agent glob filters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Optional Git branch for a remote project URL; invalid for local project paths. | |
| format | No | Tree representation. Markdown is the compact default; text uses drawing characters, while JSON and XML are structured. | markdown |
| project | No | Absolute root path returned by list_projects, or a Git URL when the server allows remote sources. Optional only when one local root is configured. | |
| git_scope | No | Further restrict results to staged files, all current changes, or files changed between two Git refs. | |
| max_depth | No | Maximum tree depth from 0 to 1000; accepts an integer or numeric string. | |
| tracked_only | No | Restrict results to files tracked by Git; accepts a boolean or the string 'true' or 'false'. | |
| max_file_bytes | No | Exclude otherwise selected files strictly larger than this byte count; integer or numeric string. | |
| exclude_patterns | No | Project-relative glob patterns using '/' to exclude additional paths. | |
| include_patterns | No | Project-relative glob patterns using '/'. They only narrow built-in and gitignore filtering. |