beforeToolCall method

Future<HookDecision> beforeToolCall(
  1. ToolCallContext ctx
)

Called before a tool is invoked. Returns a HookDecision that the shell uses to allow / deny / cancel the call.

Implementation

Future<HookDecision> beforeToolCall(ToolCallContext ctx) async {
  return const HookDecisionAllow();
}