list_symbols
Retrieve top-level symbols (classes, functions, etc.) from a Python file with their names, types, line numbers, and byte offsets.
Instructions
List all top-level symbols in a Python file.
Args: project_path: Root directory of the Python project file_path: File path relative to project_path
Returns: JSON with symbols: [{"name": "Foo", "type": "class", "line": 5, "byte_offset": 42}, ...]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |