explain_module_resolution
[architecture]
Explains how one static import, import-equals require, or re-export specifier resolves from one file.
Try it locally in the TGlider playground
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| filePath | string | Yes | Workspace-relative or absolute file path. |
| moduleSpecifier | string | Yes | The exact static import, import-equals require, or re-export specifier to explain. |
| occurrenceIndex | number | No | Optional zero-based occurrence index when the same specifier appears more than once in the file. Default: 0 |
Examples
Replace sample paths and symbol keys with values from your workspace.
Explain a path alias or package import
Arguments
{
"filePath": "src/app.ts",
"moduleSpecifier": "@app/shared"
}Full MCP request
Full MCP request
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "explain_module_resolution",
"arguments": {
"filePath": "src/app.ts",
"moduleSpecifier": "@app/shared"
}
}
}Response Notes
Returns source project context, the selected occurrence index and matching import or re-export occurrence, resolved target path and project when available, package-entrypoint evidence, alias keys, ambient-module and baseUrl-only classifications, and unresolved or external resolution notes.