This is the type accepted by registerTool / registerPrompt. The SDK needs
~standard.jsonSchema to advertise the tool's argument shape in tools/list, and
~standard.validate to check incoming arguments when a tools/call arrives.
Zod v4, ArkType, and Valibot (via @valibot/to-json-schema's toStandardJsonSchema)
all implement both interfaces.
Combined interface for schemas with both validation and JSON Schema conversion — the intersection of
StandardSchemaV1andStandardJSONSchemaV1.This is the type accepted by
registerTool/registerPrompt. The SDK needs~standard.jsonSchemato advertise the tool's argument shape intools/list, and~standard.validateto check incoming arguments when atools/callarrives.Zod v4, ArkType, and Valibot (via
@valibot/to-json-schema'stoStandardJsonSchema) all implement both interfaces.See
https://standardschema.dev/ for the Standard Schema specification