@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Interface McpToolResponse

    MCP-compatible tool response shape.

    structuredContent is optional because error responses legitimately carry only content (the human-readable error text) — forcing every wrapper to fabricate an empty structuredContent obscures the success/error split. All success builders in this file still populate it.

    Uses Record<string, unknown> for structuredContent to satisfy MCP SDK's CallToolResult index signature requirement.

    interface McpToolResponse {
        content: { type: "text"; text: string }[];
        structuredContent?: Record<string, unknown>;
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown
    Index

    Properties

    content: { type: "text"; text: string }[]
    structuredContent?: Record<string, unknown>