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.
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": {
"path": "<path>"
},
"name": "get_file_outline"
}
}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 |