Analyze project
analyzeMeasure a redacted project selection and list its largest text files by estimated tokens to identify context-heavy files.
Instructions
Measure a redacted project selection and list its largest text files by estimated tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | No | Existing project-relative files or directories that narrow the selection. | |
| branch | No | Optional Git branch for a remote project URL; invalid for local project paths. | |
| detail | No | Collapse code to signatures or strip comments/blank lines to fit large projects into a budget; unsupported languages are returned unchanged. | full |
| profile | No | Selection profile: 'standard', 'local', or a portable profile JSON path inside the project root. | |
| 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. | |
| top_files | No | Number of largest text files to return by estimated tokens; default 10; 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| detail | Yes | ||
| tokens | Yes | ||
| topFiles | Yes | ||
| characters | Yes |