resolve_module_alias
Resolve TypeScript path aliases to their physical file locations using tsconfig paths and baseUrl, so you can navigate from an import to the actual source file.
Instructions
Map a TypeScript path alias (e.g. @/components/Button or @utils/format) to its physical file location on disk, using the paths and baseUrl from the resolved tsconfig. Useful when an agent needs to navigate to the actual file behind an import.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | Yes | The import alias to resolve, e.g. @/hooks/useAuth or ~lib/helpers | |
| configPath | Yes | Absolute path to the tsconfig.json whose paths config should be used |