get_file_relations
Show a file's import relationships—what it imports, what imports it, and related tests—using static analysis without indexing to assess impact before code changes.
Instructions
Shows import relationships for a file: what it imports, what imports it,
and related test files. Built from static analysis (no indexing needed).
Args:
path: File path relative to project root.
Returns:
Import graph and impact assessment for the 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": {
"path": "<path>"
},
"name": "get_file_relations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |