Imports and importers of a file
snapshot_neighborsTrace both directions of a file's import graph against a codebase snapshot: list what it imports and what imports it, with their parts. Read-only.
Instructions
Both directions of the import graph for one path: what it imports and what imports it, resolved against the snapshot and listed with their parts. The question a change asks first. Read-only.
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": "snapshot_neighbors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to the repository root. | |
| root | No | Repository root. Defaults to the directory this server was started in. | |
| outDir | No | Snapshot directory, relative to the root, and it must resolve inside the served repository. Defaults to the project configuration's outDir. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imports | No | ||
| importedBy | No |