get_file_outline
Retrieve a nested outline of a Python file or directory—showing classes, methods, functions, and module variables with line numbers—without reading the full file body.
Instructions
List the symbol skeleton of a file or directory WITHOUT reading bodies — the cheapest way to understand what a file contains.
Returns a nested outline (classes, methods, functions, module vars) with line numbers. Prefer this over reading a whole file when you only need its shape.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Repo-relative path to a .py file, or a directory (e.g. 'pkg/' ). | |
| response_format | No | 'concise' (names) or 'detailed' (signatures + docstrings). | concise |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |