SessionStartRequired
{ readonly injectSteps?: readonly { readonly systemMessage?: { readonly systemMessage?: string; readonly metadata?: Readonly<Record<string, unknown>>; }; readonly userMessage?: string; readonly ephemeralMessage?: string; readonly toolCall?: Readonly<Record<string, unknown>>; }[]; }
Accepted native output for SessionStart; never means this event accepts no callback decision. Returning nothing preserves the native flow.
PreToolUseRequired
{ readonly decision: "allow" | "auto_approve" | "deny" | "ask" | "force_ask" | "deny_unless_prior_grant"; readonly reason?: string; readonly overwrite?: Readonly<Record<string, unknown>>; readonly permissionOverrides?: readonly string[]; }
Accepted native output for PreToolUse; never means this event accepts no callback decision. Returning nothing preserves the native flow.
PostToolUseRequired
{}
Accepted native output for PostToolUse; never means this event accepts no callback decision. Returning nothing preserves the native flow.
PreInvocationRequired
{ readonly injectSteps?: readonly { readonly systemMessage?: { readonly systemMessage?: string; readonly metadata?: Readonly<Record<string, unknown>>; }; readonly userMessage?: string; readonly ephemeralMessage?: string; readonly toolCall?: Readonly<Record<string, unknown>>; }[]; }
Accepted native output for PreInvocation; never means this event accepts no callback decision. Returning nothing preserves the native flow.
PostInvocationRequired
{ readonly injectSteps?: readonly { readonly systemMessage?: { readonly systemMessage?: string; readonly metadata?: Readonly<Record<string, unknown>>; }; readonly userMessage?: string; readonly ephemeralMessage?: string; readonly toolCall?: Readonly<Record<string, unknown>>; }[]; readonly terminationBehavior?: "force_continue" | "terminate" | ""; }
Accepted native output for PostInvocation; never means this event accepts no callback decision. Returning nothing preserves the native flow.
StopRequired
{ readonly decision: string; readonly reason?: string; }
Accepted native output for Stop; never means this event accepts no callback decision. Returning nothing preserves the native flow.