Skip to content

ToolParameters ​

ts
type ToolParameters = $ZodObject | Exclude<JSONSchema, boolean> & object | undefined;

A tool's input schema: a Zod object or a JSON Schema with type: 'object', since providers require object input. Omit it for a tool that takes no input.