createTool<T extends z.ZodObject<z.ZodRawShape>>(options: { name: string; description: string; schema: T; execute: (params: InferParams<T>,ctx: ToolExecutionContext,) => Promise<ToolResult>; }): Tool<InferParams<T>>
Helper function to create a tool with a simpler API
options: { name: string; description: string; schema: T; execute: (params: InferParams<T>,ctx: ToolExecutionContext,) => Promise<ToolResult>; }
Tool<InferParams<T>>