Sanity Library Reference Docs
    Preparing search index...

    JSON-schema descriptor for consumers that don't speak zod — e.g. the Anthropic Messages API input_schema field. properties/required are declared (not left to the index signature) so the shape is directly assignable to the Anthropic SDK's Tool.InputSchema.

    interface ToolInputJsonSchema {
        properties?: Record<string, unknown>;
        required?: string[];
        type: "object";
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown
    Index

    Properties

    properties?: Record<string, unknown>
    required?: string[]
    type: "object"