mcp-use TypeScript API
    Preparing search index...

    Type Alias InferToolInput<T>

    InferToolInput: T extends {
        inputSchema: infer S extends StandardSchemaWithJSON;
    }
        ? StandardSchemaWithJSON.InferOutput<S> extends Record<string, unknown>
            ? StandardSchemaWithJSON.InferOutput<S>
            : Record<string, unknown>
        : T extends { schema: infer S extends StandardSchemaWithJSON }
            ? StandardSchemaWithJSON.InferOutput<S> extends Record<string, unknown>
                ? StandardSchemaWithJSON.InferOutput<S>
                : Record<string, unknown>
            : Record<string, unknown>

    Infer the callback params type from a tool definition's input schema.

    Type Parameters

    • T