outline_file
Retrieve a high-level outline of a file to understand its structure, showing only class and function definitions and section separators.
Instructions
Returns a high-level outline of a file, similar to VS Code's folded view.
Shows only structurally significant lines:
class and def definitions (at any indentation level)
Section separator comments (# === ... or # --- ... prefix, at any indentation)
Section name comments that immediately follow a pure separator line
Output format: "LINE_NUMBER:LINE_CONTENT" (1-indexed), one per line. Useful for understanding the structure of a large file before reading it in full.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |