get_dependencies
Retrieve import dependencies and imported-by relationships for a specific file to understand coupling before refactoring.
Instructions
Get the import and importedBy relationships for a specific file. Shows what this file depends on and what depends on it. Use to understand coupling before refactoring a 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": {
"projectRoot": "<projectRoot>",
"file": "<file>"
},
"name": "get_dependencies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Relative file path (e.g. 'src/server.ts') | |
| projectRoot | Yes | Absolute path to the project root directory | |
| tsconfigPath | No | Optional tsconfig path relative to projectRoot |