Module PreToolUse.Input

type t

Typed input for PreToolUse hooks

val jsont : t Jsont.t

jsont is the Jsont codec for PreToolUse input.

val session_id : t -> string

session_id t returns the session ID.

val transcript_path : t -> string

transcript_path t returns the transcript file path.

val tool_name : t -> string

tool_name t returns the tool name being invoked.

val tool_input : t -> Jsont.json

tool_input t returns the tool's input as raw JSON.

val unknown : t -> Unknown.t

unknown t returns the unknown fields.