beforeToolCall method

  1. @override
Future<HookDecision> beforeToolCall(
  1. ToolCallContext ctx
)
override

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

Implementation

@override
Future<HookDecision> beforeToolCall(ToolCallContext ctx) async {
  // FR-009: records are appended in `afterToolCall` — no pending map needed.
  return const HookDecisionAllow();
}