Skip to main content

pre_tool_use_answer

Function pre_tool_use_answer 

Source
pub fn pre_tool_use_answer(
    event: &str,
    verdict: PolicyVerdict<'_>,
) -> PolicyHookAnswer
Expand description

A PreToolUse answer. Codex refuses a call with a deny decision and does not support ask from a hook, so an ask rule matched here says nothing and is left to the native rule, if any. No match prints nothing; input that cannot be read is denied.