Module PreToolUse.Output

type t

Typed output for PreToolUse hooks

val jsont : t Jsont.t

jsont is the Jsont codec for PreToolUse output.

val allow : ?reason:string -> ?updated_input:Jsont.json -> unit -> t

allow ?reason ?updated_input () creates an allow response.

  • parameter reason

    Optional explanation for allowing

  • parameter updated_input

    Optional modified tool input

val deny : ?reason:string -> unit -> t

deny ?reason () creates a deny response.

  • parameter reason

    Optional explanation for denying

val ask : ?reason:string -> unit -> t

ask ?reason () creates an ask response to prompt the user.

  • parameter reason

    Optional explanation for asking

val continue : unit -> t

continue () creates a continue response with no decision.