Code Inventory
get_code_inventoryLists classes, functions, methods, and exports within a file or directory, allowing extension filters to inventory symbols across a codebase.
Instructions
Lists classes, functions, methods, and exports. Use extensions to filter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | Keep files or symbols whose path or name contains this text (case-insensitive) | |
| path | Yes | File or directory to analyze; must be inside the allowed roots | |
| limit | No | Max files returned (default 20) | |
| max_depth | No | Max directory depth to descend (default unlimited) | |
| max_files | No | Stop after scanning this many files (default unlimited) | |
| extensions | No | Only scan these extensions, e.g. [".ts", ".py"] (default all supported) | |
| include_hidden | No | Include dotfiles and dot-directories (default false) | |
| ignore_patterns | No | Extra gitignore-style patterns to exclude, relative to path | |
| include_private | No | Include private and unexported symbols (default false) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| _meta | No | ||
| summary | Yes | ||
| inventory | Yes |