Angular Modernizer
    Preparing search index...

    MCP tool for resolving the TypeScript type at a given source position. Returns the type string, nullability, async status, and declaration origin.

    Use during bug investigation to understand what type a variable or expression holds at a specific line/column - especially useful for tracking down null-reference errors or incorrect generic type assumptions.

    // Via MCP:
    // tool: resolve-type
    // args: { file: '/project/src/app/user.service.ts', line: 42, column: 15, projectRoot: '/project' }

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    annotations: ToolAnnotations = ...

    Behavior hints for clients (MCP 2025-03-26); hints, not guarantees.

    description: string = ...

    Human-readable description of what the tool does.

    name: "resolve-type" = 'resolve-type'

    Unique tool name.

    title: "Resolve Type" = 'Resolve Type'

    Display name for clients (MCP 2025-06-18).

    Methods

    • Resolves the type at file, line and column.

      Parameters

      • args: Record<string, unknown>

        Tool arguments validated against the input schema

      • ctx: ToolContext = {}

      Returns Promise<ResolvedTypeInfo & { summary: string; warnings?: string[] }>

      The resolved type with a text summary