Skip to content

JsonInputDefinition

Declares a 'json' input value: any JSON-serializable value, optionally checked by a parser.

readonly dataType: "json"

Discriminator naming this data type.


readonly mandatory: boolean

Whether the value must be present.


readonly optional parse?: JsonParse<any>

Parser that validates and narrows the value, in the shape of zod’s safeParse.


readonly optional schema?: JsonSchema

The JSON Schema of the zod schema the value was declared with, when it was declared with one rather than a parse function: what tells a consumer, such as an MCP tool listing, the shape the value takes. The Runtime does not apply it.


readonly type: "value"

Discriminator for a single value.