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")
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": "inspect_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| depth | No | class |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |