analyze_file_ast
Parses a Python file's abstract syntax tree to yield an outline of docstrings, imports, top-level classes, functions, variables, and line counts. Enables codebase analysis without loading full source.
Instructions
Parse a Python file using Python's AST parser and return a detailed outline of its docstrings, imports, top-level classes, functions, variables, and line counts.
:param file_path: Path to the Python (.py) file to analyze.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |