Get compact file outline
ast_get_outlineReturns body-free declaration signatures for a single TypeScript or JavaScript file, providing structural symbol metadata on demand to understand code organization and APIs without reading implementation details.
Instructions
Returns body-free declaration signatures for one TypeScript/JavaScript file. Detailed symbol metadata is opt-in because it duplicates signature text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Project-relative or absolute source file path. | |
| project_root | Yes | Absolute project directory containing tsconfig.json, or the config path. | |
| include_symbols | No | Include detailed symbol metadata. Omit for the smallest body-free response. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| outline | Yes | ||
| symbols | No |