Skip to main content

HookInput

Entire passes HookInput via stdin to get-session-id and read-session.

AgentSession

Entire passes AgentSession to write-session and receives it from read-session.

Event

The parse-hook subcommand returns this normalized lifecycle event.
Event types: Optional event fields: previous_session_id, session_ref, prompt, model, timestamp, tool_use_id, subagent_id, tool_input, subagent_type, task_description, response_message, metadata. You must provide type and session_id.