get_dependencies
Trace static imports for a file: list its dependencies by path, line, and type, or find files that import it in reverse. Set depth to follow imports N levels.
Instructions
The imports of a file: path, line, internal/external/stdlib. reverse:true lists the files that import it instead; depth:N follows imports N levels (a list of {path, depth}). Static imports only; path may be a fragment or file name.
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": "get_dependencies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path, fragment or name | |
| depth | No | Follow imports this many levels | |
| reverse | No | Files that import this file |