onPreToolUse property

Called before a tool is executed. Can modify or reject the tool call.

Implementation

final HookHandler<PreToolUseInput, PreToolUseOutput>? onPreToolUse;