inspect_structure
Inspect code structure by analyzing classes, methods, and line numbers to prepare for refactoring. Specify file path and depth to control detail level.
Instructions
Get structural information about code (classes, methods, line numbers).
Inspects a file to return information about its structure. Use this to understand the code before applying refactorings.
Args: path: File path to inspect (e.g., 'src/order.py') depth: Level of detail - 'file', 'class', or 'method' (default: 'class')
Returns: TOON-formatted string with structural information.
Example: inspect_structure(path="src/order.py", depth="method")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| depth | No | class |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |