Angular Modernizer
    Preparing search index...

    MCP tool that returns the structure of an Angular component template: elements with their bindings, the project components/directives and pipes they resolve to, control-flow nesting and i18n keys.

    Logic lives in TemplateInspector (@angular-modernizer/api); this tool only resolves the project, validates arguments and applies the compact output contract. Accepts the .html template or the component .ts file.

    // Via MCP:
    // tool: inspect-template
    // args: { file: '/project/src/app/list/list.component.html', 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: "inspect-template" = 'inspect-template'

    Unique tool name.

    title: "Inspect Template" = 'Inspect Template'

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

    Methods

    • Execute the tool with given arguments.

      Parameters

      • args: Record<string, unknown>

        Tool arguments validated against inputSchema

      • ctx: ToolContext = {}

        Cancellation and progress of the MCP request (absent in direct calls)

      Returns Promise<InspectTemplateOutput>

      Tool execution result