Expand description
Conversion of the endpoint Type model into JSON Schema, as required by
MCP (Model Context Protocol) tool definitions (inputSchema / outputSchema).
The conversion is a pure function over Type; StructRef/EnumRef/
StructTable references are resolved through a caller-provided
TypeRegistry and emitted as $ref entries under $defs.
Structs§
- Type
Registry - Name →
Typemap used to resolveStructRef,EnumRefandStructTablewhile converting to JSON Schema.