gather_context
Understand any codebase quickly by gathering its structure, file distribution, frameworks, entry points, and configuration files.
Instructions
Collects comprehensive codebase information.
Parameters:
structure(bool): Show directory treefile_types(bool): Show file type distributionproject_type(bool): Detect project type (CLI/library/webapp)framework(bool): Detect frameworks (React, Django, etc.)entry_points(bool): Find main/index filestest_layout(bool): Show test organizationconfig_files(bool): List configuration filesdepth(int): Tree depth for structure (default: 2)path(string, optional): Focus on specific directory
When to use:
Understanding project structure and organization
Finding which frameworks/languages are used
Locating entry points and test layouts
Getting file statistics and distribution
When NOT to use:
Finding conceptual/architectural information (use search_documentation)
Understanding high-level how things work (use search_documentation)
Note: By default (no parameters), all context types are gathered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config_files | No | List important configuration files | |
| depth | No | Tree depth for structure (default: 2) | |
| entry_points | No | Show entry point files | |
| file_types | No | Show file type distribution | |
| framework | No | Detect frameworks and conventions | |
| path | No | Focus on specific directory path | |
| project_type | No | Detect project type (CLI/library/webapp/monorepo) | |
| structure | No | Show directory structure | |
| test_layout | No | Show test organization pattern |