MCPToolResult | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Type Alias MCPToolResult<Structured>

    Result of a tool call, as defined by the MCP CallToolResult

    type MCPToolResult<
        Structured extends Record<string, unknown> = Record<string, unknown>,
    > = {
        content: MCPToolContent[];
        isError?: boolean;
        structuredContent?: Structured;
    }

    Type Parameters

    • Structured extends Record<string, unknown> = Record<string, unknown>

      Type of the structuredContent

    Index

    Properties

    content: MCPToolContent[]
    isError?: boolean

    Set if the tool failed. The content should then describe the error so the client (and its model) can act on it

    structuredContent?: Structured

    Structured (JSON) version of the result