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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filePath": "<filePath>"
},
"name": "outline_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |