ctx_dependencies
Return a file's outbound import dependencies as JSON. Use to identify what a file imports before refactoring.
Instructions
Return the outbound import edges of a file as JSON: [{target, imported_symbol}] — the project files/modules it imports and, where known, the symbol imported. Use to see what a file depends on before refactoring it. path is project-relative or absolute (traversal rejected). For the reverse direction (who imports this) use ctx_dependents. Requires the project to be indexed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Project-relative or absolute file path. Paths outside the project root are rejected. Required. |