list_imports
List all imports in a Python file, providing bound names, module paths, relative levels, and aliases, categorized into stdlib, third-party, and relative.
Instructions
List all imports: bound name, module path, relative level and aliases, grouped into stdlib / third-party / relative.
Args: path: Path to a .py file.
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": "list_imports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |