mcp-use TypeScript API
    Preparing search index...

    Interface ToolContentResult

    Content-only tool result (structuredContent pinned to never).

    Prefer returning a raw CallToolResult: { content: [{ type: "text", text }] }.

    interface ToolContentResult {
        _meta?: { [key: string]: unknown };
        content: ({} | {} | {} | {} | {})[];
        isError?: boolean;
        structuredContent?: undefined;
        [x: string]: unknown;
    }

    Indexable

    • [x: string]: unknown
    Index
    _meta?: { [key: string]: unknown }

    Protocol extension metadata.

    content: ({} | {} | {} | {} | {})[]

    Model-visible content blocks.

    isError?: boolean

    Whether the result represents a tool-domain error.

    structuredContent?: undefined

    Content-only helpers never provide structured content.