Skip to content

JSONSchema

type JSONSchema = JSONSchema7;

Defined in: src/types/json.ts:37

Represents a JSON Schema definition. Used for defining the structure of tool inputs and outputs.

This is based on JSON Schema Draft 7 specification.

const schema: JSONSchema = {
type: 'object',
properties: {
name: { type: 'string' },
age: { type: 'number' }
},
required: ['name']
}