mcp-use TypeScript API
    Preparing search index...

    Function mix

    Prefer raw CallToolResult, ReadResourceResult, or GetPromptResult returns. These helpers remain for upgrade compatibility and map to the official wire envelopes.

    • Merge several tool results into one (content concatenated; objects shallow-merged).

      Parameters

      • ...results: { [key: string]: unknown }[]

        Results to merge.

      Returns { [key: string]: unknown }

      Combined tool result.

      Prefer building a single raw CallToolResult with the desired content array.