inspect_code_ast
Parse a Python source file into an abstract syntax tree and extract class, function, and import structures to enable diagnostic code analysis and root-cause identification.
Instructions
Parses a target Python source file into an AST tree to return class, function, and import structures for diagnostic analysis.
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": {
"file_path": "<file_path>"
},
"name": "inspect_code_ast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to Python source file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |