scan_code
Scan directories for code files (JS, TS, C#, PHP, CSS) to extract and list defined elements (functions, classes) with line numbers. Supports XML, Markdown, and JSON outputs, respecting .gitignore and customizable filters for types, modifiers, and file patterns.
Instructions
Scans a directory for code files (JS, TS, C#, PHP, CSS, respecting .gitignore) and lists definitions (functions, classes, etc.) with line numbers. Supports XML, Markdown, and JSON output.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
detailLevel | No | Level of detail to include in the output. | standard |
directory | Yes | The absolute path to the directory to scan. Relative paths are not supported. | |
excludeModifiers | No | Modifiers to exclude. | |
excludeNamePattern | No | Regex pattern to exclude element names. | |
excludePaths | No | File path patterns to exclude. | |
excludeTypes | No | Element types to exclude. | |
filePatterns | No | Glob patterns for file extensions to include. | |
includeModifiers | No | Modifiers to include (e.g., public, private). | |
includePaths | No | Additional file path patterns to include. | |
includeTypes | No | Element types to include (e.g., class, method). | |
namePattern | No | Regex pattern to match element names. | |
outputFormat | No | Output format for the results. | markdown |