scan_code
Scan directories for code files (JS, TS, C#, PHP, CSS, etc.) and extract structural elements like functions and classes with line numbers. Customize output formats (XML, Markdown, JSON) and filter results by file patterns, element types, and modifiers for precise analysis.
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 |