get_imports
Retrieve import and use statements from any source file in the repository to understand dependencies without reading the entire file.
Instructions
Get import/use statements from a source 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": {
"file_path": "<file_path>"
},
"name": "get_imports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | path relative to the repo root (e.g., "src/main.py" or "calculator.py") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |