mcp-use TypeScript API
    Preparing search index...

    Class ToolError

    The bound or called tool ran and answered with isError: true — a domain error, not a transport or protocol failure.

    message is derived from the error result's text content blocks (via toolResultText), or "Tool returned an error." when there are none.

    Hierarchy

    • Error
      • ToolError
    Index
    • Parameters

      • result: { [key: string]: unknown } & { isError: true }

        The tool result with isError: true.

      Returns ToolError

    result: { [key: string]: unknown } & { isError: true }

    The error result as delivered (isError: true).