get_dependencies
Retrieve the import dependencies of a specified file, tracing its dependency chain outward. Requires a prior reindex to build the dependency graph.
Instructions
Get the files that a given file imports (its dependencies). Shows the dependency chain from this file outward. Requires a prior reindex to build the dependency graph. No API call needed.
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": "<file>"
},
"name": "get_dependencies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Relative file path from project root (e.g., "src/tools/searchCode.ts") | |
| depth | No | How many levels deep to traverse (default: 1 = direct imports only, 2 = imports of imports) |