Angular Modernizer
    Preparing search index...

    MCP tool that returns the Reactive Forms of a component or service file as structure: controls with validators and initial state, and every enable/disable/validator change per control, including what an ancestor group's enable()/disable() switches with it.

    Logic lives in FormGroupInspector (@angular-modernizer/api); this tool resolves the project, validates arguments and applies the compact output contract (maxResults caps the control list per form).

    // Via MCP:
    // tool: inspect-form-group
    // args: { file: 'src/app/edit/edit.component.ts', 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-form-group" = 'inspect-form-group'

    Unique tool name.

    title: "Inspect Form Group" = 'Inspect Form Group'

    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<InspectFormGroupOutput>

      Tool execution result