Skip to main content

note_hook_call

Function note_hook_call 

Source
pub fn note_hook_call(input: &str, event: &str) -> bool
Expand description

Leave what a hook payload says about its tool call. On PreToolUse, each ljos line of a shell call is kept for the process that runs it, and a subagent’s mcp__SERVER__ljos_NAME call is kept for the server whether or not SERVER is a configured key. On PostToolUse what the call did not take is dropped. The payload’s agent is this hook process’s own. Returns whether the call is a PreToolUse on a confirmed seat server: the server judges that call, so the hook has nothing more to say.