Module PostToolUse.Input

type t

Typed input for PostToolUse hooks

val jsont : t Jsont.t

jsont is the Jsont codec for PostToolUse 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 that was invoked.

val tool_input : t -> Jsont.json

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

val tool_response : t -> Jsont.json

tool_response t returns the tool's response as raw JSON.

val unknown : t -> Unknown.t

unknown t returns the unknown fields.