mcp-use TypeScript API
    Preparing search index...

    Type Alias InferToolOutput<T>

    InferToolOutput: T extends {
        outputSchema: infer S extends StandardSchemaWithJSON;
    }
        ? StandardSchemaWithJSON.InferOutput<S>
        : never

    Infer the structured output type from a definition's outputSchema — any JSON root, not just objects (2026-07-28 protocol); never when the definition declares none (any CallToolResult is then accepted — see ToolResult).

    Type Parameters

    • T