Skip to content

ToolInputParameters

type ToolInputParameters =
| undefined
| ZodObjectLike
| StandardSchemaWithJSON<any, any>
| JsonObjectSchema<any>;

The parameters of a tool.

This can be a supported Standard Schema, a Zod schema, a JSON schema or undefined.

If a supported Standard Schema or Zod schema is provided, the arguments to the tool will automatically be parsed and validated against the schema.

If a JSON schema is provided, the arguments to the tool will be passed as is.

If undefined is provided, the arguments to the tool will be passed as a string.