SingleBeforeToolCallback: ((tool: BaseTool, args: Record<string, any>, toolContext: ToolContext) =>
    | Record<string, any>
    | null
    | undefined
    | Promise<Record<string, any> | null | undefined>)

Single before tool callback type