CodeGraph: codegraph_files
codegraph_filesExplore project structure with an indexed file tree showing language and symbol counts, enabling faster layout queries than glob.
Instructions
Indexed file tree with language + symbol counts. Faster than Glob for project layout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Filter to files under this directory path (e.g., "src/components"). Returns all files if not specified. | |
| format | No | Output format: "tree" (hierarchical, default), "flat" (simple list), "grouped" (by language) | tree |
| pattern | No | Filter files matching this glob pattern (e.g., "*.tsx", "**/*.test.ts") | |
| maxDepth | No | Maximum directory depth to show (default: unlimited) | |
| projectPath | Yes | Absolute path to the project to query (or any directory inside it) — codegraph uses the nearest .codegraph/ index at or above that path. Omit to use this session's default project. Pass it to query a second codebase, or when the server root has no index of its own (e.g. a monorepo where only sub-projects are indexed, so there is no default project). | |
| includeMetadata | No | Include file metadata like language and symbol count (default: true) |