Scan Directory
scan_directoryScan a directory to get a file tree with one-line summaries, code health, and churn labels for efficient codebase exploration.
Instructions
Skeleton of files or a directory: every structure with path:line, signature or title, a condensed excerpt within the budget. A directory gives the tree with one-line gists. --depth quick is about 300 tokens per file, normal 1500, deep everything with module values whole (files only). Elided content is marked ⟨…⟩ +N; focus reads it. A directory: the file tree with one-line gists per file, code health and churn labels; ref= reads it at a git ref. Replaces Glob/ls for all file types. In your shell: sct scan <dir> (if sct is not on PATH, "/app/.venv/bin/python" -m scantool.cli replaces sct).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| mode | No | balanced | |
| delta | No | ||
| depth | No | ||
| caller | No | ||
| pattern | No | **/* | |
| directory | Yes | ||
| max_files | No | ||
| output_format | No | tree | |
| exclude_patterns | No | ||
| include_metadata | No | ||
| respect_gitignore | No |