onPreToolUse property
Called before a tool is executed. Can modify or reject the tool call.
Implementation
final HookHandler<PreToolUseInput, PreToolUseOutput>? onPreToolUse;
Called before a tool is executed. Can modify or reject the tool call.
final HookHandler<PreToolUseInput, PreToolUseOutput>? onPreToolUse;