MCP Server Framework - v1.1.2
    Preparing search index...

    Interface JsonResponseOptions

    Options for JSON responses.

    interface JsonResponseOptions {
        _meta?: Record<string, unknown>;
        annotations?: ContentAnnotations;
        indent?: number;
        links?: readonly ResourceLinkSpec[];
        structuredContent?: Record<string, unknown>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    _meta?: Record<string, unknown>

    Custom metadata

    annotations?: ContentAnnotations

    Annotations to attach to the content

    indent?: number

    Number of spaces for indentation (default: 2, use 0 for compact)

    links?: readonly ResourceLinkSpec[]

    Resource references to append to the response as resource_link content blocks. One block is appended per entry, in the given order, after the primary content. Useful for pointing at large payloads stored as readable resources without inlining them.

    structuredContent?: Record<string, unknown>

    Structured payload that mirrors the tool's outputSchema.

    When set, the framework forwards it on the CallToolResult as structuredContent. Clients use it for typed access to the tool's result while the human-readable content array stays unchanged.