Get a file's direct import relationships
get_file_dependenciesIdentify a file's direct imports and its dependents to assess impact in one hop.
Instructions
Show what a file imports, and what imports that file, directly (one hop).
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_file_dependencies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Relative file path as it appears in the graph, e.g. 'src/userService.ts' | |
| graph_path | No | Path to a previously saved graph (default: .codegraph/graph.json) |