get_file_skeleton
Retrieves a token-optimized code outline with line numbers for classes and methods, supporting depth levels for names, signatures, or full detail.
Instructions
[CODE TOOLS] Retrieves a token-optimized outline of a file's code units (classes, methods) with line numbers. Use depth=1 for orientation (names only), depth=2 for analysis (signatures), depth=0 for full detail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the source file (e.g. 'src/services/billing.ts') | |
| depth | No | 0=full (default) | 1=class/namespace names only, no skeleton_text | 2=classes+method signatures | |
| project | Yes | Project name | |
| summary_only | No | Strip skeleton_text from output (applies at depth=0 only) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |