MCP TypeScript SDK (V2)
V1 Docs
Preparing search index...
@modelcontextprotocol/client
index
schemaToJson
Function schemaToJson
schemaToJson
(
schema
:
AnySchema
,
options
?:
{
io
?:
"output"
|
"input"
}
,
)
:
Record
<
string
,
unknown
>
Converts a Zod schema to JSON Schema.
Parameters
schema
:
AnySchema
Optional
options
:
{
io
?:
"output"
|
"input"
}
Returns
Record
<
string
,
unknown
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
V1 Docs
MCP TypeScript SDK (V2)
Loading...
Converts a Zod schema to JSON Schema.