MCP Apps Kit - v0.5.0
    Preparing search index...

    Type Alias ToolMethods<T>

    ToolMethods: {
        [K in keyof T as K extends string ? `call${Capitalize<K>}` : never]: (
            args: InferToolInputs<T>[K],
        ) => Promise<InferToolOutputs<T>[K]>
    }

    Typed tool methods generated from tool definitions.

    Creates a method for each tool with the naming convention call{ToolName}. For example, a tool named "greet" becomes callGreet().

    Type Parameters

    • T extends ToolDefs
    // Instead of:
    await client.callTool("greet", { name: "Alice" });

    // You can use:
    await client.tools.callGreet({ name: "Alice" });