HookInput
Entire passesHookInput via stdin to get-session-id and read-session.
AgentSession
Entire passesAgentSession to write-session and receives it from read-session.
Event
Theparse-hook subcommand returns this normalized lifecycle event.
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.