Function findBuiltInTool

  • Asynchronously retrieves a built-in tool by its name. If the tool is found in the BuiltInTools registry, it is loaded and returned; otherwise, a warning is logged and undefined is returned.

    Type Parameters

    • T extends Record<string, unknown>

    Parameters

    • ctx: MistiContext

      Misti context.

    • name: string

      The name of the tool to retrieve. This name must match a key in the BuiltInTools object.

    • options: T

      The options to pass to the tool constructor.

    Returns Promise<Tool<T> | undefined>

    A Promise that resolves to a Tool instance or undefined if the tool cannot be found or fails to load.